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
1 changed files with 3 additions and 3 deletions

View File

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