Skip to content

Commit

Permalink
feat(sync)!: address the clippy::extra_unused_lifetimes lint
Browse files Browse the repository at this point in the history
Removes unused lifetime parameter from `r3::sync::{recursive_,}mutex
::Definer::wrap_hunk_unchecked`. This breaks user code that explicitly
specify a lifetime (although there is no practical reason to do so).
  • Loading branch information
yvt committed Mar 21, 2023
1 parent f6eb32a commit 3c4f684
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/r3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed

- **Breaking:** Remove unused lifetime parameters from `r3::sync::{recursive_,}mutex::Definer::wrap_hunk_unchedked`

## [0.2.4] - 2022-11-16

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/r3/src/sync/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ macro_rules! impl_source_setter {
/// `UnsafeCell`'s contents based on the assumption that no accesses
/// are made through other means, and that `T` is initialized by
/// the time the boot phase completes.
pub const unsafe fn wrap_hunk_unchecked<'pool>(
pub const unsafe fn wrap_hunk_unchecked(
self,
hunk: __pr::Hunk<System, __pr::UnsafeCell<__pr::MaybeUninit<AutoWrapped<T>>>>,
) -> Definer!(__pr::HunkSource<System, AutoWrapped<T>>)
Expand Down

0 comments on commit 3c4f684

Please sign in to comment.