Renamee the aa_mode attribute to aaa_mode

This commit is contained in:
Anas Elgarhy 2023-02-12 04:40:29 +02:00
parent 6b299b9fb8
commit 1bd28299fe
No known key found for this signature in database
GPG key ID: 0501802A1D496528

View file

@ -6,7 +6,7 @@ use crate::cmus::CmusError;
pub struct PlayerSettings { pub struct PlayerSettings {
pub repeat: bool, pub repeat: bool,
pub shuffle: Shuffle, pub shuffle: Shuffle,
pub aa_mode: AAAMode, pub aaa_mode: AAAMode,
pub volume: Volume, pub volume: Volume,
} }
@ -86,7 +86,7 @@ impl FromStr for PlayerSettings {
Ok(Self { Ok(Self {
repeat, repeat,
shuffle, shuffle,
aa_mode, aaa_mode: aa_mode,
volume, volume,
}) })
} }
@ -132,7 +132,7 @@ mod tests {
assert_eq!(settings, Ok(PlayerSettings { assert_eq!(settings, Ok(PlayerSettings {
repeat: false, repeat: false,
shuffle: Shuffle::Tracks, shuffle: Shuffle::Tracks,
aa_mode: AAAMode::Artist, aaa_mode: AAAMode::Artist,
volume: Volume { volume: Volume {
left: 46, left: 46,
right: 46, right: 46,