Browse Source

rename SchedClassifierLink:new() to new_tc_link()

Avoids name confilct with pr #462

Signed-off-by: Andre Fredette <afredette@redhat.com>
Andre Fredette 2 năm trước cách đây
mục cha
commit
849796c420
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,