From a35cbb6c7d8863300c50bb350de9832c945c4fc1 Mon Sep 17 00:00:00 2001 From: "Ben Scholzen (DASPRiD)" Date: Sun, 11 Feb 2024 14:19:03 +0100 Subject: [PATCH] chore: apply clippy fixes --- src/nfc/reader.rs | 2 +- src/subsystems/audio_player.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nfc/reader.rs b/src/nfc/reader.rs index 34aff13..cd2982e 100644 --- a/src/nfc/reader.rs +++ b/src/nfc/reader.rs @@ -29,7 +29,7 @@ impl Serialize for NfcUid { where S: Serializer, { - Ok(serializer.serialize_str(&encode(&self.0))?) + serializer.serialize_str(&encode(self.0)) } } diff --git a/src/subsystems/audio_player.rs b/src/subsystems/audio_player.rs index cc69c0a..f6f5598 100644 --- a/src/subsystems/audio_player.rs +++ b/src/subsystems/audio_player.rs @@ -152,7 +152,7 @@ impl AudioCollection { let mut paths: Vec = 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() {