Merge branch 'ptr-offset-by-literal-lint' into 'master'
add ptr_offset_by_literal clippy lint and set to deny See merge request redox-os/relibc!1527
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ impl Read for UnsafeStringReader {
|
||||
}
|
||||
|
||||
*inner = *self.0;
|
||||
self.0 = self.0.offset(1);
|
||||
self.0 = self.0.add(1);
|
||||
}
|
||||
Ok(buf.len())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user