From 2ec761d30b35dbbacfecb41a2f5985781a7d52d1 Mon Sep 17 00:00:00 2001 From: ky-bean <153677733+ky-bean@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:22:57 -0700 Subject: [PATCH] Add traits to `SampleFormat`'s `#[derive(...)]` invocation (#864) Specifically, `PartialOrd`, `Ord`, & `Hash`. --- src/samples_formats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samples_formats.rs b/src/samples_formats.rs index 7d3bf96cc..3973b18de 100644 --- a/src/samples_formats.rs +++ b/src/samples_formats.rs @@ -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