Skip to content

Commit 30e80fb

Browse files
committed
Fix clippy warnings
1 parent cae4942 commit 30e80fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flexspi/sequence.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Instr {
3939
impl fmt::Debug for Instr {
4040
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4141
let raw = u16::from_le_bytes(self.0);
42-
write!(f, "{:#02X}", raw)
42+
write!(f, "{raw:#02X}")
4343
}
4444
}
4545

@@ -157,7 +157,7 @@ impl fmt::Display for Pads {
157157
Pads::Four => "QUAD",
158158
Pads::Eight => "OCTAL",
159159
};
160-
write!(f, "{}", pads)
160+
write!(f, "{pads}")
161161
}
162162
}
163163

0 commit comments

Comments
 (0)