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 {