Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Jul 20, 2024
1 parent 525f9b5 commit b29656f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/src/1090/1090.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn main() {
// convert from string hex -> bytes
let hex = &mut input.to_string()[1..len - 2].to_string();
println!("{}", hex.to_lowercase());
let bytes = if let Ok(bytes) = hex::decode(&hex) {
let bytes = if let Ok(bytes) = hex::decode(hex) {
bytes
} else {
continue;
Expand Down
2 changes: 1 addition & 1 deletion apps/src/radar/radar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ fn main() -> Result<()> {
// convert from string hex -> bytes
let hex = &mut input.to_string()[1..len - 2].to_string();
debug!("bytes: {hex}");
let bytes = if let Ok(bytes) = hex::decode(&hex) {
let bytes = if let Ok(bytes) = hex::decode(hex) {
bytes
} else {
continue;
Expand Down

0 comments on commit b29656f

Please sign in to comment.