aboutsummaryrefslogtreecommitdiff
path: root/src/sources
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-06-27 20:36:56 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-06-27 20:36:56 +0200
commit019ed133569825531b456bd594d85afe6854a232 (patch)
treec87d6bf74b57bdacea1ed4de8619eb02bfa87146 /src/sources
parent72115f805982c7322a0355f4974e0108a3905123 (diff)
Apply clippy
Diffstat (limited to 'src/sources')
-rw-r--r--src/sources/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sources/mod.rs b/src/sources/mod.rs
index c4122a4..bf68ec3 100644
--- a/src/sources/mod.rs
+++ b/src/sources/mod.rs
@@ -1,4 +1,4 @@
-use std::io::{Error, ErrorKind::Other, Result};
+use std::io::{Error, Result};
#[cfg(target_os = "macos")]
mod apple_music;
@@ -42,7 +42,7 @@ pub fn enable(source_name: &String) -> Result<()> {
return source.enable();
}
}
- Err(Error::new(Other, "No such source was available."))
+ Err(Error::other("No such source was available."))
}
pub fn disable(source_name: &String) -> Result<()> {
@@ -52,7 +52,7 @@ pub fn disable(source_name: &String) -> Result<()> {
return source.disable();
}
}
- Err(Error::new(Other, "No such source was available."))
+ Err(Error::other("No such source was available."))
}
pub fn reset(source_name: &String) -> Result<()> {
@@ -62,7 +62,7 @@ pub fn reset(source_name: &String) -> Result<()> {
return source.reset();
}
}
- Err(Error::new(Other, "No such source was available."))
+ Err(Error::other("No such source was available."))
}
pub fn get_track() -> Option<Track> {