Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kriomant committed Mar 20, 2023
1 parent 676b5cd commit 896e3ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aya/src/programs/xdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ impl Xdp {
/// kernels `>= 5.9.0`, and instead
/// [`XdpError::NetlinkError`] is returned for older
/// kernels.
pub fn attach_to_if_index(&mut self, if_index: libc::c_uint, flags: XdpFlags) -> Result<XdpLinkId, ProgramError> {
pub fn attach_to_if_index(
&mut self,
if_index: libc::c_uint,
flags: XdpFlags,
) -> Result<XdpLinkId, ProgramError> {
let prog_fd = self.data.fd_or_err()?;
let if_index = if_index as RawFd;

Expand Down

0 comments on commit 896e3ab

Please sign in to comment.