From e31789d1c169ac279960be3943778755566a69a6 Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Sat, 30 Nov 2024 17:25:58 +0100 Subject: [PATCH] Use is_empty instead of call equal --- libsysinspect/src/intp/actproc/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsysinspect/src/intp/actproc/response.rs b/libsysinspect/src/intp/actproc/response.rs index 1a80d3ce..998caac6 100644 --- a/libsysinspect/src/intp/actproc/response.rs +++ b/libsysinspect/src/intp/actproc/response.rs @@ -123,7 +123,7 @@ impl ActionResponse { /// Return state Id of the action pub fn sid(&self) -> &str { - if self.sid.eq("") { + if self.sid.is_empty() { "$" } else { &self.sid