1
Fork 0
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:
Roy Ivy III 2019-12-26 17:03:34 -06:00
parent bb15dcf1b8
commit 8b18b7c206

View file

@ -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")
};