mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 22:46:14 +01:00
Fix cargo clippy warnings
This commit is contained in:
@@ -329,10 +329,10 @@ pub unsafe extern "C" fn app_service_launch_app(
|
||||
if !argv.is_null() && argc > 0 {
|
||||
let argv_slice = unsafe { std::slice::from_raw_parts(argv, argc) };
|
||||
for &arg in argv_slice {
|
||||
if !arg.is_null() {
|
||||
if let Ok(arg_str) = unsafe { CStr::from_ptr(arg) }.to_str() {
|
||||
args.push(arg_str);
|
||||
}
|
||||
if !arg.is_null()
|
||||
&& let Ok(arg_str) = unsafe { CStr::from_ptr(arg) }.to_str()
|
||||
{
|
||||
args.push(arg_str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user