From ad817f19b59e652d793b1c41820d98ed95a52a27 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 1 Dec 2022 13:01:22 +0000 Subject: [PATCH] main: Allow the use of `let` ahead and immediate return On aarch64 there is no modification of the app struct however refactoring to remove this would be very intrusive. Signed-off-by: Rob Bradford --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index cc6998777..4a57549b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,6 +125,7 @@ fn prepare_default_values() -> (String, String, String) { } fn create_app(default_vcpus: String, default_memory: String, default_rng: String) -> Command { + #[allow(clippy::let_and_return)] let app = Command::new("cloud-hypervisor") // 'BUILT_VERSION' is set by the build script 'build.rs' at // compile time