We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8952452 commit 37d07e4Copy full SHA for 37d07e4
1 file changed
src/uu/hostid/src/hostid.rs
@@ -21,10 +21,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
21
* is a no-op unless unsigned int is wider than 32 bits.
22
*/
23
24
- let mut result: c_long;
25
- unsafe {
26
- result = gethostid();
27
- }
+ let mut result: c_long = unsafe { gethostid() };
28
29
#[allow(overflowing_literals)]
30
let mask = 0xffff_ffff;
0 commit comments