Skip to content

Commit 4324d80

Browse files
committed
teehistorian: Fix dangerous_implicit_autorefs lint
Fixes: ``` error: implicit autoref creates a reference to the dereference of a raw pointer ```
1 parent 3108ad6 commit 4324d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teehistorian/src/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl Buffer {
420420
let raw_self: *mut Buffer = self;
421421
unsafe {
422422
loop {
423-
let mut p = Unpacker::new(&(*raw_self).buffer[self.offset..]);
423+
let mut p = Unpacker::new(&(&(*raw_self).buffer)[self.offset..]);
424424
match kind.decode_rest(&mut p) {
425425
Ok(x) => {
426426
self.offset += p.num_bytes_read();

0 commit comments

Comments
 (0)