Skip to content

Commit

Permalink
恢复原姿势
Browse files Browse the repository at this point in the history
  • Loading branch information
hustfisher committed Oct 27, 2023
1 parent 09f0e07 commit 9d5da8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ds/src/mem/guarded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl MemGuard {
pub fn from_vec(data: Vec<u8>) -> Self {
debug_assert_ne!(data.len(), 0);
let data = std::mem::ManuallyDrop::new(data);
let mem: RingSlice = RingSlice::from_vec(&data);
let mem: RingSlice = RingSlice::from_vec(&*data);
Self { mem, guard: None }
}
#[inline]
Expand Down

0 comments on commit 9d5da8f

Please sign in to comment.