Procházet zdrojové kódy

rename SchedClassifierLink:new() to new_tc_link()

Avoids name confilct with pr #462

Signed-off-by: Andre Fredette <afredette@redhat.com>
Andre Fredette před 2 roky
rodič
revize
849796c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      aya/src/programs/tc.rs

+ 1 - 1
aya/src/programs/tc.rs

@@ -279,7 +279,7 @@ impl SchedClassifierLink {
     ///   [`SchedClassifierLink::detach`] will return a [`TcError::NetlinkError`]
     /// - If you create a link for a program that you do not own, detaching it may have unintended
     ///   consequences.
-    pub fn new(
+    pub fn new_tc_link(
         if_name: &str,
         attach_type: TcAttachType,
         priority: u16,