From 5aeecce96acd9287e583abaa982dc0db8bbf9314 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 26 Mar 2026 18:09:45 +0900 Subject: [PATCH] hostid: reduce lines --- src/uu/hostid/src/hostid.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uu/hostid/src/hostid.rs b/src/uu/hostid/src/hostid.rs index 041dc232344..bad5f9a79f2 100644 --- a/src/uu/hostid/src/hostid.rs +++ b/src/uu/hostid/src/hostid.rs @@ -21,10 +21,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { * is a no-op unless unsigned int is wider than 32 bits. */ - let mut result: c_long; - unsafe { - result = gethostid(); - } + let mut result: c_long = unsafe { gethostid() }; #[allow(overflowing_literals)] let mask = 0xffff_ffff;