From 3ef61b889a1196bfb195df16d367eaffd46ba520 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 23 Mar 2022 20:56:27 -0400 Subject: [PATCH] use is_empty here --- src/parsing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing.rs b/src/parsing.rs index 0db029d..73c45e4 100644 --- a/src/parsing.rs +++ b/src/parsing.rs @@ -173,7 +173,7 @@ pub fn process_func_str(function_in: &str) -> String { /// Tests function to make sure it's able to be parsed. Returns the string of /// the Error produced, or an empty string if it runs successfully. pub fn test_func(function_string: &str) -> Option { - if function_string == "" { + if function_string.is_empty() { return None; }