Renamee the aa_mode
attribute to aaa_mode
This commit is contained in:
parent
6b299b9fb8
commit
1bd28299fe
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue