diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-06-27 20:36:56 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-06-27 20:36:56 +0200 |
| commit | 019ed133569825531b456bd594d85afe6854a232 (patch) | |
| tree | c87d6bf74b57bdacea1ed4de8619eb02bfa87146 /src/sources | |
| parent | 72115f805982c7322a0355f4974e0108a3905123 (diff) | |
Apply clippy
Diffstat (limited to 'src/sources')
| -rw-r--r-- | src/sources/mod.rs | 8 |
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> { |