Do not use exported Result to mitigate problems with clap.
This commit is contained in:
parent
4eb9f0f3ae
commit
9d62e886fb
2 changed files with 8 additions and 3 deletions
|
@ -4,7 +4,10 @@ use clap::Parser;
|
||||||
use embassy::executor::{Executor, Spawner};
|
use embassy::executor::{Executor, Spawner};
|
||||||
use embassy::io::AsyncWriteExt;
|
use embassy::io::AsyncWriteExt;
|
||||||
use embassy::util::Forever;
|
use embassy::util::Forever;
|
||||||
use embassy_net::*;
|
use embassy_net::{
|
||||||
|
Config, Configurator, DhcpConfigurator, Ipv4Address, Ipv4Cidr, StackResources,
|
||||||
|
StaticConfigurator, TcpSocket,
|
||||||
|
};
|
||||||
use heapless::Vec;
|
use heapless::Vec;
|
||||||
use log::*;
|
use log::*;
|
||||||
|
|
||||||
|
|
|
@ -141,10 +141,12 @@ impl TunTapDevice {
|
||||||
}
|
}
|
||||||
|
|
||||||
use core::task::Waker;
|
use core::task::Waker;
|
||||||
use embassy_net::{DeviceCapabilities, LinkState, Packet, PacketBox, PacketBoxExt, PacketBuf};
|
use embassy_net::{
|
||||||
|
Device, DeviceCapabilities, LinkState, Packet, PacketBox, PacketBoxExt, PacketBuf,
|
||||||
|
};
|
||||||
use std::task::Context;
|
use std::task::Context;
|
||||||
|
|
||||||
impl crate::Device for TunTapDevice {
|
impl Device for TunTapDevice {
|
||||||
fn is_transmit_ready(&mut self) -> bool {
|
fn is_transmit_ready(&mut self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue