mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (use is_null)
This commit is contained in:
parent
bb15dcf1b8
commit
8b18b7c206
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
|
||||
unsafe { signal(SIGHUP, SIG_IGN) };
|
||||
|
||||
if unsafe { _vprocmgr_detach_from_console(0) } != std::ptr::null() {
|
||||
if unsafe { !_vprocmgr_detach_from_console(0).is_null() } {
|
||||
crash!(2, "Cannot detach from console")
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue