Skip to content

Commit 2ec761d

Browse files
authored
Add traits to SampleFormat's #[derive(...)] invocation (#864)
Specifically, `PartialOrd`, `Ord`, & `Hash`.
1 parent 437d47f commit 2ec761d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/samples_formats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use dasp_sample::{FromSample, Sample, I24, I48, U24, U48};
66

77
/// Format that each sample has.
88
#[cfg_attr(target_os = "emscripten", wasm_bindgen)]
9-
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
9+
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
1010
#[non_exhaustive]
1111
pub enum SampleFormat {
1212
/// `i8` with a valid range of 'u8::MIN..=u8::MAX' with `0` being the origin

0 commit comments

Comments
 (0)