Short-term net fix

This commit is contained in:
Jonah Dahlquist 2021-02-25 19:49:18 -08:00
commit dfa252f997
2 changed files with 3 additions and 1 deletions

View file

@ -59,7 +59,7 @@ impl Default for Mode {
pub mod bus; pub mod bus;
mod device; mod device;
mod host; mod host;
mod net; pub mod net;
pub mod register; pub mod register;
mod socket; mod socket;
mod udp; mod udp;

View file

@ -10,6 +10,8 @@
//! [RFC 2832]: https://github.com/rust-lang/rfcs/pull/2832 //! [RFC 2832]: https://github.com/rust-lang/rfcs/pull/2832
#![deny(unsafe_code, missing_docs, warnings)] #![deny(unsafe_code, missing_docs, warnings)]
// TODO remove some of these constructs and use equivalents available from embedded-nal
/// Ipv4Addr address struct. Can be instantiated with `Ipv4Addr::new`. /// Ipv4Addr address struct. Can be instantiated with `Ipv4Addr::new`.
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash, Default)] #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash, Default)]
pub struct Ipv4Addr { pub struct Ipv4Addr {