Skip to content

Commit

Permalink
Merge pull request #21 from florian1345/clippy
Browse files Browse the repository at this point in the history
Fix clippy warning
  • Loading branch information
florian1345 committed Mar 27, 2023
2 parents e649037 + 959aaa2 commit 9955720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mem_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl<T: MemSize> MemSize for [T] {

impl<T: MemSize, const N: usize> HeapSize for [T; N] {
fn heap_size(&self) -> usize {
(&self[..]).heap_size()
self[..].heap_size()
}
}

Expand Down

0 comments on commit 9955720

Please sign in to comment.