Skip to content

Commit 682f518

Browse files
committed
Remove some unnecessary output lifetime bounds
Safe since we're using rust 2024
1 parent f30c4cf commit 682f518

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

firewood/benches/hashops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ enum FlamegraphProfiler {
2626
Active(ProfilerGuard<'static>),
2727
}
2828

29-
fn file_error_panic<T, U>(path: &Path) -> impl FnOnce(T) -> U + '_ {
29+
fn file_error_panic<T, U>(path: &Path) -> impl FnOnce(T) -> U {
3030
|_| panic!("Error on file `{}`", path.display())
3131
}
3232

firewood/src/merkle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ impl<S: ReadableStorage> Merkle<NodeStore<MutableProposal, S>> {
995995
/// Returns an iterator where each element is the result of combining
996996
/// 2 nibbles of `nibbles`. If `nibbles` is odd length, panics in
997997
/// debug mode and drops the final nibble in release mode.
998-
pub fn nibbles_to_bytes_iter(nibbles: &[u8]) -> impl Iterator<Item = u8> + '_ {
998+
pub fn nibbles_to_bytes_iter(nibbles: &[u8]) -> impl Iterator<Item = u8> {
999999
debug_assert_eq!(nibbles.len() & 1, 0);
10001000
#[expect(clippy::indexing_slicing)]
10011001
nibbles.chunks_exact(2).map(|p| (p[0] << 4) | p[1])

storage/benches/serializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum FlamegraphProfiler {
2323
Active(ProfilerGuard<'static>),
2424
}
2525

26-
fn file_error_panic<T, U>(path: &FsPath) -> impl FnOnce(T) -> U + '_ {
26+
fn file_error_panic<T, U>(path: &FsPath) -> impl FnOnce(T) -> U {
2727
|_| panic!("Error on file `{}`", path.display())
2828
}
2929

storage/src/node/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bitflags! {
5050

5151
impl Path {
5252
/// Return an iterator over the encoded bytes
53-
pub fn iter_encoded(&self) -> impl Iterator<Item = u8> + '_ {
53+
pub fn iter_encoded(&self) -> impl Iterator<Item = u8> {
5454
let mut flags = Flags::empty();
5555

5656
let has_odd_len = self.0.len() & 1 == 1;

0 commit comments

Comments
 (0)