events: Rename Amplitude::value to get

This commit is contained in:
Kévin Commaille 2022-03-28 19:16:50 +02:00 committed by Kévin Commaille
parent 4128afaaeb
commit f3b2b7bce3
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ impl Amplitude {
} }
/// The value of this `Amplitude`. /// The value of this `Amplitude`.
pub fn value(&self) -> UInt { pub fn get(&self) -> UInt {
self.0 self.0
} }
} }

View File

@ -60,7 +60,7 @@ fn waveform_deserialization_clamp_amplitude() {
assert_matches!( assert_matches!(
from_json_value::<Waveform>(json_data).unwrap(), from_json_value::<Waveform>(json_data).unwrap(),
waveform if waveform.amplitudes().iter().all(|amp| amp.value() == Amplitude::MAX.into()) waveform if waveform.amplitudes().iter().all(|amp| amp.get() == Amplitude::MAX.into())
); );
} }