Skip to content

Commit 5cfadb3

Browse files
Fix small clippy nitpick
1 parent 8bdc59b commit 5cfadb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inputstream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern fn read<T: Read + Seek>(data: *mut c_void, size: c_longlong, user_data: *
3636
let mut buf = vec!();
3737
let status = chunk.read_to_end(&mut buf);
3838
if status.is_ok() {
39-
unsafe { ptr::copy_nonoverlapping(buf.as_ptr(), data as *mut u8, size as usize) };
39+
unsafe { ptr::copy_nonoverlapping(buf.as_ptr(), data as *mut u8, size as usize); }
4040
return status.unwrap() as i64;
4141
}
4242
}

0 commit comments

Comments
 (0)