Skip to content

Commit

Permalink
Fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-meissner committed Feb 5, 2025
1 parent 54355cb commit 2ab4b79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl<'a> TransmissionCommand<'a> {
}
}

impl<'a, const LEN: usize> AtatCmd<LEN> for TransmissionCommand<'a> {
impl<const LEN: usize> AtatCmd<LEN> for TransmissionCommand<'_> {
type Response = NoResponse;

const MAX_TIMEOUT_MS: u32 = 5000;
Expand All @@ -329,7 +329,7 @@ impl<'a, const LEN: usize> AtatCmd<LEN> for TransmissionCommand<'a> {
}
}

impl<'a> CommandErrorHandler for TransmissionCommand<'a> {
impl CommandErrorHandler for TransmissionCommand<'_> {
type Error = StackError;
const WOULD_BLOCK_ERROR: Self::Error = StackError::UnexpectedWouldBlock;

Expand Down
2 changes: 1 addition & 1 deletion src/urc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ struct DataMessage<'a> {
pub data: &'a [u8],
}

impl<'a> DataMessage<'a> {
impl DataMessage<'_> {
/// Copies all serial data to a vector
fn to_vec<const LEN: usize>(&self) -> Option<Vec<u8, LEN>> {
let mut vec = Vec::new();
Expand Down

0 comments on commit 2ab4b79

Please sign in to comment.