mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Avoid unused variables in the network module
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
94e043ac8d
commit
5eefd600cc
@ -1,9 +1,7 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
use smoltcp::{
|
||||
iface::{Config, Routes},
|
||||
iface::Config,
|
||||
phy::{Loopback, Medium},
|
||||
wire::IpCidr,
|
||||
};
|
||||
@ -27,7 +25,6 @@ impl IfaceLoopback {
|
||||
pub fn new() -> Arc<Self> {
|
||||
let mut loopback = Loopback::new(Medium::Ip);
|
||||
let interface = {
|
||||
let routes = Routes::new();
|
||||
let config = Config::new();
|
||||
let mut interface = smoltcp::iface::Interface::new(config, &mut loopback);
|
||||
interface.update_ip_addrs(|ip_addrs| {
|
||||
|
Reference in New Issue
Block a user