Explorar o código

Fix formatting

Mikhail Trishchenkov %!s(int64=2) %!d(string=hai) anos
pai
achega
896e3ab
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      aya/src/programs/xdp.rs

+ 5 - 1
aya/src/programs/xdp.rs

@@ -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;