We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c5c89 commit 4e0632bCopy full SHA for 4e0632b
src/storage.rs
@@ -24,7 +24,7 @@ impl Storage {
24
pub fn copy_from_slice(slice: &[u8]) -> Self {
25
if slice.len() <= MAX_INLINE {
26
let mut data: [u8; MAX_INLINE] = [0; MAX_INLINE];
27
- &data[..slice.len()].copy_from_slice(slice);
+ data[..slice.len()].copy_from_slice(slice);
28
Storage::Inline(data)
29
} else {
30
Storage::Heap(slice.into())
0 commit comments