Skip to content

Commit

Permalink
chore: apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Feb 11, 2024
1 parent 9c9c93f commit a35cbb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nfc/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Serialize for NfcUid {
where
S: Serializer,
{
Ok(serializer.serialize_str(&encode(&self.0))?)
serializer.serialize_str(&encode(self.0))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/subsystems/audio_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl AudioCollection {
let mut paths: Vec<PathBuf> = Vec::new();

for entry in glob(format!("{}/*.mp3", path.to_str().unwrap()).as_str()).unwrap() {
paths.push(entry.unwrap().as_path().try_into()?);
paths.push(entry.unwrap().as_path().into());
}

if paths.is_empty() {
Expand Down

0 comments on commit a35cbb6

Please sign in to comment.