Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forced route in multi net dev #179

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

lhw2002426
Copy link
Contributor

No description provided.

@ken4647
Copy link
Contributor

ken4647 commented Feb 23, 2025

warning: unused import: `self`
  --> modules/ruxnet/src/smoltcp_impl/tcp.rs:19:22
   |
19 | use smoltcp::iface::{self, SocketHandle};
   |                      ^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `self`
  --> modules/ruxnet/src/smoltcp_impl/mod.rs:27:22
   |
27 | use smoltcp::iface::{self, Config, Interface, SocketHandle, SocketSet};
   |                      ^^^^

warning: unnecessary `unsafe` block
   --> modules/ruxnet/src/smoltcp_impl/tcp.rs:160:47
    |
160 |                 .find(|iface| iface.name() == unsafe { self.iface_name.lock().clone().unwrap() })
    |                                               ^^^^^^ unnecessary `unsafe` block
    |
    = note: `#[warn(unused_unsafe)]` on by default

warning: unnecessary `unsafe` block
   --> modules/ruxnet/src/smoltcp_impl/tcp.rs:191:9
    |
191 |         unsafe {
    |         ^^^^^^ unnecessary `unsafe` block

warning: unnecessary `unsafe` block
   --> modules/ruxnet/src/smoltcp_impl/tcp.rs:372:9
    |
372 |         unsafe {
    |         ^^^^^^ unnecessary `unsafe` block

please solve these warnings during compling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants