chore(toolchain): update (#1470)

* [create-pull-request] automated change

* chore: cargo clippy

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Henrik Friedrichsen
2024-06-22 18:55:12 +02:00
committed by GitHub
parent ec7091fbc7
commit b823dfaf6c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
[toolchain]
channel = "1.78.0"
channel = "1.79.0"
components = ["rustfmt", "clippy", "rust-analyzer"]

View File

@@ -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)]