diff options
Diffstat (limited to 'components/malloc_size_of/lib.rs')
-rw-r--r-- | components/malloc_size_of/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/malloc_size_of/lib.rs b/components/malloc_size_of/lib.rs index 26d71b69f4b..c401411b8c3 100644 --- a/components/malloc_size_of/lib.rs +++ b/components/malloc_size_of/lib.rs @@ -140,8 +140,8 @@ macro_rules! malloc_size_of_is_0( impl MallocSizeOf for keyboard_types::Key { fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize { - match self { - keyboard_types::Key::Character(ref string) => { + match &self { + keyboard_types::Key::Character(string) => { <String as MallocSizeOf>::size_of(string, ops) }, _ => 0, |