events: Rename Amplitude::value to get
This commit is contained in:
parent
4128afaaeb
commit
f3b2b7bce3
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user