Skip to content

Commit

Permalink
sam/record/cigar/op: Make new const
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Oct 7, 2023
1 parent 814944a commit 7ac216f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions noodles-sam/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

* sam/lazy/record: Return raw read name (`lazy::Record::read_name`).

* sam/record/cigar/op: Make `Op::new` `const`.

## 0.43.0 - 2023-09-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion noodles-sam/src/record/cigar/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Op {
/// assert_eq!(op.kind(), Kind::Match);
/// assert_eq!(op.len(), 13);
/// ```
pub fn new(kind: Kind, len: usize) -> Self {
pub const fn new(kind: Kind, len: usize) -> Self {
Self { kind, len }
}

Expand Down

0 comments on commit 7ac216f

Please sign in to comment.