diff --git a/src/printf/memo.rs b/src/printf/memo.rs index 4d26efc15..5f3eee482 100644 --- a/src/printf/memo.rs +++ b/src/printf/memo.rs @@ -72,7 +72,7 @@ impl Memo { } pub fn run_all(pf_string: &str, pf_args: &[String]) { let mut arg_it = pf_args.iter().peekable(); - let pm = Memo::new(&pf_string.to_string(), &mut arg_it); + let pm = Memo::new(pf_string, &mut arg_it); loop { if arg_it.peek().is_none() { break;