diff --git a/.github/workflows/clippy-rustfmt.yml b/.github/workflows/clippy-rustfmt.yml index 4fffafc..38f9046 100644 --- a/.github/workflows/clippy-rustfmt.yml +++ b/.github/workflows/clippy-rustfmt.yml @@ -28,7 +28,7 @@ jobs: run: cargo fmt --all -- --check - name: clippy-tokio-socket - run: cargo clippy -- -D warnings + run: cargo clippy --all-targets -- -D warnings - name: clippy-smol-socket run: > diff --git a/examples/add_route_mpls.rs b/examples/add_route_mpls.rs index 7136f0b..fd730ab 100644 --- a/examples/add_route_mpls.rs +++ b/examples/add_route_mpls.rs @@ -67,7 +67,7 @@ async fn add_route_mpls( ) -> Result<(), Error> { let route = RouteMessageBuilder::::new() .label(input_label) - .via(gateway.ip().into()) + .via(gateway.ip()) .output_mpls(vec![output_label]) .build(); handle.route().add(route).execute().await?; diff --git a/src/link/test.rs b/src/link/test.rs index 2e988cb..e34fb07 100644 --- a/src/link/test.rs +++ b/src/link/test.rs @@ -6,8 +6,8 @@ use tokio::runtime::Runtime; use crate::{ new_connection, packet_route::link::{ - InfoData, InfoKind, InfoMacVlan, InfoNetkit, InfoVrf, LinkAttribute, - LinkInfo, LinkMessage, MacVlanFlags, MacVlanMode, NetkitMode, + InfoData, InfoKind, InfoMacVlan, InfoVrf, LinkAttribute, LinkInfo, + LinkMessage, MacVlanFlags, MacVlanMode, NetkitMode, }, Error, LinkHandle, LinkMacVlan, LinkNetkit, LinkVrf, LinkWireguard, };