about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpdpopm/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/mp/mpdpopm/src/bin')
-rw-r--r--pkgs/by-name/mp/mpdpopm/src/bin/mpdpopm.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/by-name/mp/mpdpopm/src/bin/mpdpopm.rs b/pkgs/by-name/mp/mpdpopm/src/bin/mpdpopm.rs
index 04760f18..82a354d6 100644
--- a/pkgs/by-name/mp/mpdpopm/src/bin/mpdpopm.rs
+++ b/pkgs/by-name/mp/mpdpopm/src/bin/mpdpopm.rs
@@ -160,7 +160,7 @@ async fn get_ratings(
     tracks: Option<Vec<String>>,
     with_uri: bool,
 ) -> Result<()> {
-    let mut ratings: Vec<(String, u8)> = Vec::new();
+    let mut ratings: Vec<(String, i8)> = Vec::new();
 
     for file in map_tracks(client, tracks).await? {
         let rating = rating_count::get(client, &file)
@@ -185,7 +185,7 @@ async fn get_ratings(
 }
 
 /// Rate a track
-async fn set_rating(client: &mut Client, rating: u8, arg: Option<String>) -> Result<()> {
+async fn set_rating(client: &mut Client, rating: i8, arg: Option<String>) -> Result<()> {
     let is_current = arg.is_none();
     let file = provide_file(client, arg).await?;
 
@@ -472,7 +472,7 @@ enum RatingCommand {
     /// With a second argument, rate that song at the first argument. Ratings
     /// may be expressed a an integer between 0 & 255, inclusive.
     #[clap(verbatim_doc_comment)]
-    Set { rating: u8, track: Option<String> },
+    Set { rating: i8, track: Option<String> },
 
     /// increment the rating for one track
     ///