Skip to content

Commit

Permalink
bgzf/writer/compression_level: Implement Ord + PartialOrd
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed May 16, 2024
1 parent 633bf00 commit 5aafd3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions noodles-bgzf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* bgzf/writer/compression_level: Add a `const` getter
(`CompressionLevel::get`).

* bgzf/writer/compression_level: Implement `Ord` + `PartialOrd`.

## 0.29.0 - 2024-05-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion noodles-bgzf/src/writer/compression_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MAX: u8 = 12;
const MAX: u8 = 9;

/// A DEFLATE compression level.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub struct CompressionLevel(u8);

impl CompressionLevel {
Expand Down

0 comments on commit 5aafd3f

Please sign in to comment.