Skip to content

Commit

Permalink
clippy fixes (#63)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebook/buck2#63

Reviewed By: stepancheg

Differential Revision: D42303253

Pulled By: ndmitchell

fbshipit-source-id: 817471a98f123d88e538cce479add65440237b91
  • Loading branch information
philipcraig authored and facebook-github-bot committed Jan 2, 2023
1 parent 6129b1c commit 4fb57a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion allocative/src/size_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion allocative/src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>`).
fn enter_unique_impl(&mut self, name: Key, size: usize, parent: NodeKind);
/// Enter field which points to heap-allocated shared memory (e.g. `Arc<T>`).
Expand Down

0 comments on commit 4fb57a9

Please sign in to comment.