Skip to content

Commit dbf10c3

Browse files
committed
修复一个SB写法
1 parent dc848d1 commit dbf10c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dscom/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ pub fn compress(src: &[u8], dst: &mut Vec<u8>) -> usize {
3232
}
3333
return COMPRESSOR.with(|c| {
3434
let mut comp = c.borrow_mut();
35-
return comp
36-
.compress_to_buffer(src, &mut *dst, COMPRESS_LEVEL)
37-
.unwrap();
35+
return comp.compress_to_buffer(src, dst, COMPRESS_LEVEL).unwrap();
3836
});
3937
}
4038

@@ -44,7 +42,7 @@ pub fn decompress(src: &[u8], dst: &mut Vec<u8>) -> usize {
4442
}
4543
return DECOMPRESSOR.with(|d| {
4644
let mut dcomp = d.borrow_mut();
47-
return dcomp.decompress_to_buffer(src, &mut *dst).unwrap();
45+
return dcomp.decompress_to_buffer(src, dst).unwrap();
4846
});
4947
}
5048

0 commit comments

Comments
 (0)