Skip to content

Commit 4e0632b

Browse files
committed
Clippy
1 parent 20c5c89 commit 4e0632b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl Storage {
2424
pub fn copy_from_slice(slice: &[u8]) -> Self {
2525
if slice.len() <= MAX_INLINE {
2626
let mut data: [u8; MAX_INLINE] = [0; MAX_INLINE];
27-
&data[..slice.len()].copy_from_slice(slice);
27+
data[..slice.len()].copy_from_slice(slice);
2828
Storage::Inline(data)
2929
} else {
3030
Storage::Heap(slice.into())

0 commit comments

Comments
 (0)