From c6c2584d3f72d409511783eb2973b810e4e36ef5 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sat, 22 Jun 2024 18:41:46 +0200 Subject: [PATCH] chore: cargo clippy --- src/spotify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spotify.rs b/src/spotify.rs index df4fbfbc..36d754e1 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -32,7 +32,7 @@ use crate::spotify_worker::{Worker, WorkerCommand}; /// One percent of the maximum supported [Player] volume, used when setting the volume to a certain /// percent. -pub const VOLUME_PERCENT: u16 = ((u16::max_value() as f64) * 1.0 / 100.0) as u16; +pub const VOLUME_PERCENT: u16 = ((u16::MAX as f64) * 1.0 / 100.0) as u16; /// Events sent by the [Player]. #[derive(Clone, Debug, PartialEq, Eq, Serialize)]