mirror of
https://github.com/simonask/libyaml-safer
synced 2024-11-26 21:30:24 +00:00
Resolve ptr_offset_with_cast clippy lint
This commit is contained in:
parent
c69e847a68
commit
2204c7ea3a
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ unsafe fn get_value(line: &[u8], value: *mut i8, style: *mut yaml_scalar_style_t
|
|||
let line_len = line.len();
|
||||
let line = line as *const [u8] as *mut i8;
|
||||
let mut start = ptr::null_mut::<i8>();
|
||||
let end = line.offset(line_len as isize);
|
||||
let end = line.add(line_len);
|
||||
let mut c = line.offset(4);
|
||||
while c < end {
|
||||
if *c as u8 == b' ' {
|
||||
|
|
Loading…
Reference in a new issue