From 8636d147519c50d40b2d9fe8a0a159929fe1d22f Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Tue, 16 Jan 2024 15:50:46 -0800 Subject: [PATCH] fix clippy --- dsc_lib/src/dscresources/dscresource.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsc_lib/src/dscresources/dscresource.rs b/dsc_lib/src/dscresources/dscresource.rs index ef8c432c3..dbfd3147e 100644 --- a/dsc_lib/src/dscresources/dscresource.rs +++ b/dsc_lib/src/dscresources/dscresource.rs @@ -62,7 +62,7 @@ impl DscResource { } fn validate_input(&self, input: &str) -> Result<(), DscError> { - if input.len() == 0 { + if input.is_empty() == 0 { return Ok(()); } let Some(manifest) = &self.manifest else {