mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-19 14:53:33 -04:00
Fix clippy lint (#455)
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com> Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
+1
-1
@@ -933,7 +933,7 @@ impl Arg for DecInt {
|
||||
}
|
||||
|
||||
/// Runs a closure with `bytes` passed in as a `&CStr`.
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, clippy::int_plus_one)]
|
||||
#[inline]
|
||||
fn with_c_str<T, F>(bytes: &[u8], f: F) -> io::Result<T>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user