From a4b568ae48c15e42da84037256cde457962fc9d5 Mon Sep 17 00:00:00 2001 From: Mark Pitblado Date: Mon, 11 Nov 2024 07:53:51 -0800 Subject: [PATCH] fix: title reference --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 75267d5..4a9c99c 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -22,7 +22,7 @@ pub fn parse_task_input(input: &str) -> ParsedTask { } } - let title = priority_re.replace_all(&input, "").to_string(); + let title = priority_re.replace_all(input, "").into_owned(); let title = Regex::new(r"\s+") .unwrap()