diff --git a/logging/src/usbd.rs b/logging/src/usbd.rs index 5ff98429..0ecc5ed0 100644 --- a/logging/src/usbd.rs +++ b/logging/src/usbd.rs @@ -243,6 +243,12 @@ pub struct UsbdConfigBuilder { cfg: UsbdConfig, } +impl Default for UsbdConfigBuilder { + fn default() -> Self { + Self::new() + } +} + impl UsbdConfigBuilder { /// Create a new builder with the default values. pub const fn new() -> Self { diff --git a/src/common/pit.rs b/src/common/pit.rs index 929980ed..3a596929 100644 --- a/src/common/pit.rs +++ b/src/common/pit.rs @@ -94,6 +94,7 @@ pub fn new(pit: crate::ral::pit::Instance) -> Channels { } mod private { + #[allow(dead_code)] pub trait Sealed {} } /// Describes a valid PIT channel.