Skip to content

Commit

Permalink
aldrin: Take self by value in LifetimeId::is_nil()
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-hamester committed Nov 18, 2024
1 parent 7615010 commit 2a78fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions aldrin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
and `set_ref()` have been added.
- Channels have undergone a large rewrite. There are now new low-level types and the overall
ergonomics have been improved.
- `LifetimeId::is_nil()` now takes `self` by value instead of by reference.

## [0.8.0] - 2024-09-22

Expand Down
2 changes: 1 addition & 1 deletion aldrin/src/lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl LifetimeId {
}

/// Checks if the id is nil (all zeros).
pub const fn is_nil(&self) -> bool {
pub const fn is_nil(self) -> bool {
self.0.is_nil()
}
}
Expand Down

0 comments on commit 2a78fc9

Please sign in to comment.