mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
printf: refactor ~ remove redundant string allocation
This commit is contained in:
parent
3e3dff3a57
commit
d704fb2b61
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue