Let Error implement defmt::Format

This commit is contained in:
Rasmus Melchior Jacobsen 2023-01-30 12:46:48 +01:00
parent 38e5657fe1
commit 6935ed0836
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#[derive(Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Error {
/// The url did not start with <scheme>://
NoScheme,

View File

@ -1,7 +1,7 @@
#![no_std]
mod error;
#[cfg(feature = "defmt")]
mod defmt_impl;
mod error;
pub use error::Error;