From 80bf296382ad2e4e808570c099b2a7400383e5e7 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 16 Aug 2021 12:26:28 +0800 Subject: [PATCH] xtask: fix clippy warnings Signed-off-by: Sean Cross --- xtask/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 11d238fea..b26da2cda 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -466,7 +466,7 @@ fn renode_image(debug: bool, packages: &[&str], extra_packages: &[&str]) -> Resu ]) .status()?; if !status.success() { - Err("Unable to regenerate Renode platform file")?; + return Err("Unable to regenerate Renode platform file".into()); } build_hw_image( debug, @@ -482,7 +482,7 @@ fn renode_image(debug: bool, packages: &[&str], extra_packages: &[&str]) -> Resu fn run(debug: bool, init: &[&str]) -> Result<(), DynError> { let stream = if debug { "debug" } else { "release" }; - build(&init, debug, None, None, None)?; + build(init, debug, None, None, None)?; // Build and run the kernel let mut args = vec!["run"];