Do not use exported Result to mitigate problems with clap.

This commit is contained in:
Matous Hybl 2021-12-08 22:19:13 +01:00
parent 4eb9f0f3ae
commit 9d62e886fb
2 changed files with 8 additions and 3 deletions

View file

@ -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::*;

View file

@ -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
} }