From f4779d4ab651c4710a217d4eb7e3e41fe44ac9dd Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Sat, 13 Nov 2021 18:55:19 +0100 Subject: [PATCH] Simplify slice arg --- packages/storage-plus/src/keys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/storage-plus/src/keys.rs b/packages/storage-plus/src/keys.rs index c68c60fd8..495dfc091 100644 --- a/packages/storage-plus/src/keys.rs +++ b/packages/storage-plus/src/keys.rs @@ -161,7 +161,7 @@ impl<'a> Prefixer<'a> for () { impl<'a> Prefixer<'a> for &'a [u8] { fn prefix(&self) -> Vec { - vec![Key::Ref(self.as_ref())] + vec![Key::Ref(self)] } }