Skip to content

Commit

Permalink
Simplify slice arg
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Nov 13, 2021
1 parent 202dda6 commit f4779d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storage-plus/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl<'a> Prefixer<'a> for () {

impl<'a> Prefixer<'a> for &'a [u8] {
fn prefix(&self) -> Vec<Key> {
vec![Key::Ref(self.as_ref())]
vec![Key::Ref(self)]
}
}

Expand Down

0 comments on commit f4779d4

Please sign in to comment.