Skip to content

Commit

Permalink
Address latest clippy warnings
Browse files Browse the repository at this point in the history
Clippy believes the sealed trait is unused. Although it's never
referenced, it's implemented on public types. That must not be enough of
a use for the newest clippy.
  • Loading branch information
mciantyre committed May 8, 2024
1 parent 0b63096 commit ad7bfc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions logging/src/usbd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/common/pit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ pub fn new<const N: u8>(pit: crate::ral::pit::Instance<N>) -> Channels {
}

mod private {
#[allow(dead_code)]
pub trait Sealed {}
}
/// Describes a valid PIT channel.
Expand Down

0 comments on commit ad7bfc0

Please sign in to comment.