Skip to content

Commit

Permalink
Add traits to SampleFormat's #[derive(...)] invocation (#864)
Browse files Browse the repository at this point in the history
Specifically, `PartialOrd`, `Ord`, & `Hash`.
  • Loading branch information
ky-bean authored Mar 14, 2024
1 parent 437d47f commit 2ec761d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/samples_formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub use dasp_sample::{FromSample, Sample, I24, I48, U24, U48};

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

0 comments on commit 2ec761d

Please sign in to comment.