Skip to content

Commit

Permalink
Address latest clippy warnings
Browse files Browse the repository at this point in the history
cargo clippy --fix && cargo fmt
  • Loading branch information
mciantyre committed Mar 14, 2023
1 parent d2a49c3 commit cb973c9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn ctrl_ep0_in() -> EndpointAddress {
}

/// USB low / full / high speed setting.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]
pub enum Speed {
/// Throttle to low / full speeds.
///
Expand All @@ -35,15 +35,10 @@ pub enum Speed {
///
/// A high-speed device can still interface a low / full
/// speed host, so use this setting for the most flexibility.
#[default]
High,
}

impl Default for Speed {
fn default() -> Self {
Speed::High
}
}

/// A USB driver
///
/// After you allocate a `Driver` with [`new()`](Driver::new), you must
Expand Down

0 comments on commit cb973c9

Please sign in to comment.