diff --git a/src/error.rs b/src/error.rs index 64e7021..d70fe15 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,4 +1,5 @@ #[derive(Debug, PartialEq, Eq)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub enum Error { /// The url did not start with :// NoScheme, diff --git a/src/lib.rs b/src/lib.rs index 9a95bcd..b03c4c8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ #![no_std] -mod error; #[cfg(feature = "defmt")] mod defmt_impl; +mod error; pub use error::Error;