From 9391d22fa28c0e5c194a302ebb4a8f0ce4f4618a Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 2 Aug 2022 19:54:01 +1000 Subject: [PATCH] Apply clippy suggestion Signed-off-by: Jiahao XU --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ccbc519a..052c57e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -241,7 +241,7 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> { "" }; - if option != "" { + if !option.is_empty() { return Err(BinstallError::OverrideOptionUsedWithMultiInstall { option }.into()); } }