Merge #530
530: Do not use exported Result to mitigate problems with clap. r=Dirbaio a=matoushybl Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
This commit is contained in:
commit
4f4b19d920
2 changed files with 8 additions and 3 deletions
|
@ -4,7 +4,10 @@ use clap::Parser;
|
|||
use embassy::executor::{Executor, Spawner};
|
||||
use embassy::io::AsyncWriteExt;
|
||||
use embassy::util::Forever;
|
||||
use embassy_net::*;
|
||||
use embassy_net::{
|
||||
Config, Configurator, DhcpConfigurator, Ipv4Address, Ipv4Cidr, StackResources,
|
||||
StaticConfigurator, TcpSocket,
|
||||
};
|
||||
use heapless::Vec;
|
||||
use log::*;
|
||||
|
||||
|
|
|
@ -141,10 +141,12 @@ impl TunTapDevice {
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
impl crate::Device for TunTapDevice {
|
||||
impl Device for TunTapDevice {
|
||||
fn is_transmit_ready(&mut self) -> bool {
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue