diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1ec3ae9..50543c8 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.78.0" +channel = "1.79.0" components = ["rustfmt", "clippy", "rust-analyzer"] diff --git a/src/spotify.rs b/src/spotify.rs index df4fbfb..36d754e 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)]