mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
Do not use exported Result to mitigate problems with clap.
This commit is contained in:
parent
4eb9f0f3ae
commit
9d62e886fb
@ -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 New Issue
Block a user