From 44a60f773f5c5d97789fa057f7469ba165e61bbe Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Thu, 26 Dec 2019 15:37:29 -0600 Subject: [PATCH] refactor/polish ~ fix `cargo clippy` complaints (allow 'let_and_return') --- src/hostname/hostname.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hostname/hostname.rs b/src/hostname/hostname.rs index d3b8bd92c..82e5504dc 100644 --- a/src/hostname/hostname.rs +++ b/src/hostname/hostname.rs @@ -43,6 +43,7 @@ const SUMMARY: &str = "Print or set the system's host name."; const LONG_HELP: &str = ""; pub fn uumain(args: Vec) -> i32 { + #![allow(clippy::let_and_return)] #[cfg(windows)] unsafe { let mut data = std::mem::uninitialized();