From 4fb57a9b9207e3858a364afc9f8ba37302dd136d Mon Sep 17 00:00:00 2001 From: Philip Craig <689193+philipcraig@users.noreply.github.com> Date: Mon, 2 Jan 2023 11:14:07 -0800 Subject: [PATCH] clippy fixes (#63) Summary: Pull Request resolved: https://github.com/facebookincubator/buck2/pull/63 Reviewed By: stepancheg Differential Revision: D42303253 Pulled By: ndmitchell fbshipit-source-id: 817471a98f123d88e538cce479add65440237b91 --- allocative/src/size_of.rs | 2 +- allocative/src/visitor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/allocative/src/size_of.rs b/allocative/src/size_of.rs index 12160c7..2eb3709 100644 --- a/allocative/src/size_of.rs +++ b/allocative/src/size_of.rs @@ -38,7 +38,7 @@ pub fn size_of_unique_allocated_data(root: &dyn Allocative) -> usize { } impl VisitorImpl for SizeOfUniqueAllocatedDataVisitor { - fn enter_inline_impl<'a>(&'a mut self, _name: Key, size: usize, parent: NodeKind) { + fn enter_inline_impl(&mut self, _name: Key, size: usize, parent: NodeKind) { if let NodeKind::Unique = parent { self.size += size; } diff --git a/allocative/src/visitor.rs b/allocative/src/visitor.rs index 0486afd..16ea04f 100644 --- a/allocative/src/visitor.rs +++ b/allocative/src/visitor.rs @@ -21,7 +21,7 @@ use crate::key::Key; pub(crate) trait VisitorImpl { /// Enter simple field like `u32`. /// All sizes are in bytes. - fn enter_inline_impl<'a>(&'a mut self, name: Key, size: usize, parent: NodeKind); + fn enter_inline_impl(&mut self, name: Key, size: usize, parent: NodeKind); /// Enter field which points to heap-allocated unique memory (e.g. `Box`). fn enter_unique_impl(&mut self, name: Key, size: usize, parent: NodeKind); /// Enter field which points to heap-allocated shared memory (e.g. `Arc`).