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 dc848d1 commit dbf10c3Copy full SHA for dbf10c3
dscom/src/lib.rs
@@ -32,9 +32,7 @@ pub fn compress(src: &[u8], dst: &mut Vec<u8>) -> usize {
32
}
33
return COMPRESSOR.with(|c| {
34
let mut comp = c.borrow_mut();
35
- return comp
36
- .compress_to_buffer(src, &mut *dst, COMPRESS_LEVEL)
37
- .unwrap();
+ return comp.compress_to_buffer(src, dst, COMPRESS_LEVEL).unwrap();
38
});
39
40
@@ -44,7 +42,7 @@ pub fn decompress(src: &[u8], dst: &mut Vec<u8>) -> usize {
44
42
45
43
return DECOMPRESSOR.with(|d| {
46
let mut dcomp = d.borrow_mut();
47
- return dcomp.decompress_to_buffer(src, &mut *dst).unwrap();
+ return dcomp.decompress_to_buffer(src, dst).unwrap();
48
49
50
0 commit comments