From 057224f9a23972a4361d96fdfe341487994b9f68 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Wed, 12 Jun 2024 21:40:39 -0700 Subject: [PATCH] style: Remove unneeded parens --- src/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spec.rs b/src/spec.rs index d77c6daa..177039ab 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -653,7 +653,7 @@ pub(crate) fn is_dir(filename: &str) -> bool { pub(crate) fn path_to_string>(path: T) -> Box { let mut maybe_original = None; if let Some(original) = path.as_ref().to_str() { - if (original.len() == 0) { + if original.len() == 0 { return String::new().into_boxed_str(); } if (MAIN_SEPARATOR == '/' || !original[1..].contains(MAIN_SEPARATOR))