Skip to content

Commit 3c4f684

Browse files
committed
feat(sync)!: address the clippy::extra_unused_lifetimes lint
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).
1 parent f6eb32a commit 3c4f684

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/r3/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- **Breaking:** Remove unused lifetime parameters from `r3::sync::{recursive_,}mutex::Definer::wrap_hunk_unchedked`
13+
1014
## [0.2.4] - 2022-11-16
1115

1216
### Changed

src/r3/src/sync/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ macro_rules! impl_source_setter {
387387
/// `UnsafeCell`'s contents based on the assumption that no accesses
388388
/// are made through other means, and that `T` is initialized by
389389
/// the time the boot phase completes.
390-
pub const unsafe fn wrap_hunk_unchecked<'pool>(
390+
pub const unsafe fn wrap_hunk_unchecked(
391391
self,
392392
hunk: __pr::Hunk<System, __pr::UnsafeCell<__pr::MaybeUninit<AutoWrapped<T>>>>,
393393
) -> Definer!(__pr::HunkSource<System, AutoWrapped<T>>)

0 commit comments

Comments
 (0)