From c77d9c560b46e981fc6972b3aec8c106b6bbf6b2 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 5 Mar 2022 21:11:54 +0100 Subject: [PATCH] fix(engine): fix clippy warning --- espanso-engine/src/process/middleware/image_resolve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espanso-engine/src/process/middleware/image_resolve.rs b/espanso-engine/src/process/middleware/image_resolve.rs index 8a9569f..7fb1151 100644 --- a/espanso-engine/src/process/middleware/image_resolve.rs +++ b/espanso-engine/src/process/middleware/image_resolve.rs @@ -47,7 +47,7 @@ impl<'a> Middleware for ImageResolverMiddleware<'a> { if let EventType::ImageRequested(m_event) = &event.etype { // On Windows, we have to replace the forward / with the backslash \ in the path let path = if cfg!(target_os = "windows") { - m_event.image_path.replace("/", "\\") + m_event.image_path.replace('/', "\\") } else { m_event.image_path.to_owned() };