diff --git a/CHANGELOG.md b/CHANGELOG.md index c6af0a7..5923ec1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Add `serde` feature to support config serializing and deserializing + --- ## 0.1.4 diff --git a/src/codec/decoder/ordered.rs b/src/codec/decoder/ordered.rs index cc417c7..80d4d97 100644 --- a/src/codec/decoder/ordered.rs +++ b/src/codec/decoder/ordered.rs @@ -49,7 +49,7 @@ where { fn ordered(self, max_channels: usize) -> Order { assert!( - max_channels < usize::from(u8::MAX), + max_channels < 256, "max channels should not be larger than u8::MAX" ); assert!(max_channels > 0, "max_channels > 0");