diff --git a/crates/ruma-common/src/events/audio.rs b/crates/ruma-common/src/events/audio.rs index 76d3c1a3..693f80c0 100644 --- a/crates/ruma-common/src/events/audio.rs +++ b/crates/ruma-common/src/events/audio.rs @@ -211,7 +211,7 @@ impl Amplitude { } /// The value of this `Amplitude`. - pub fn value(&self) -> UInt { + pub fn get(&self) -> UInt { self.0 } } diff --git a/crates/ruma-common/tests/events/audio.rs b/crates/ruma-common/tests/events/audio.rs index c61dba1e..f7a6e312 100644 --- a/crates/ruma-common/tests/events/audio.rs +++ b/crates/ruma-common/tests/events/audio.rs @@ -60,7 +60,7 @@ fn waveform_deserialization_clamp_amplitude() { assert_matches!( from_json_value::(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()) ); }