Skip to content

Commit 72b2c32

Browse files
lf-facebook-github-bot
authored andcommitted
fix: a lot of instances of clippy::needless_lifetimes
Summary: This doesn't get all of them because: 1. there are so many of them 2. the lint is pretty jank Part of facebook/buck2#943 X-link: facebook/buck2#944 Reviewed By: JakobDegen Differential Revision: D74271655 Pulled By: dtolnay fbshipit-source-id: c7e41c47248d4be1f5d33a14b676ab35fc5180e2
1 parent 3cade87 commit 72b2c32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

allocative/src/flamegraph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ struct TreeRef<'a> {
137137
tree_id: TreeId,
138138
}
139139

140-
impl<'a> TreeRef<'a> {
140+
impl TreeRef<'_> {
141141
fn write_flame_graph(&self, stack: &[&str], warnings: &mut String) -> FlameGraph {
142142
let mut flame_graph = FlameGraph::default();
143143
let tree = &self.trees[self.tree_id];
@@ -240,7 +240,7 @@ struct TreeStackRef<'t, 's> {
240240
stack: &'s mut TreeStack,
241241
}
242242

243-
impl<'t, 's> TreeStackRef<'t, 's> {
243+
impl<'t> TreeStackRef<'t, '_> {
244244
fn current_data(&'t mut self) -> &'t mut TreeData {
245245
&mut self.trees[self.stack.tree]
246246
}

allocative/src/visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct Visitor<'a> {
6161
pub(crate) node_kind: NodeKind,
6262
}
6363

64-
impl<'a> Drop for Visitor<'a> {
64+
impl Drop for Visitor<'_> {
6565
fn drop(&mut self) {
6666
self.exit_impl();
6767
}

0 commit comments

Comments
 (0)