Finally, get rid of all rust warnings
Just a small step along the way to reduce the massive wall of spam every time you compile. This was done partly automagically with `cargo fix`. The rest was me deleting or commenting out a bunch of variables. Hope nothing was important...
This commit is contained in:
@@ -217,9 +217,9 @@ pub unsafe extern "C" fn strerror(errnum: c_int) -> *mut c_char {
|
||||
let mut w = platform::StringWriter(strerror_buf.as_mut_ptr(), strerror_buf.len());
|
||||
|
||||
if errnum >= 0 && errnum < STR_ERROR.len() as c_int {
|
||||
w.write_str(STR_ERROR[errnum as usize]);
|
||||
let _ = w.write_str(STR_ERROR[errnum as usize]);
|
||||
} else {
|
||||
w.write_fmt(format_args!("Unknown error {}", errnum));
|
||||
let _ = w.write_fmt(format_args!("Unknown error {}", errnum));
|
||||
}
|
||||
|
||||
strerror_buf.as_mut_ptr() as *mut c_char
|
||||
|
||||
Reference in New Issue
Block a user