From 8a86b4e4fc4fec7d47f3439b0ec52222c360e378 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Mon, 3 Feb 2025 15:55:55 -0800 Subject: [PATCH] Remove some stale comments --- src/highlight/highlight.rs | 2 +- src/parse_execution.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/highlight/highlight.rs b/src/highlight/highlight.rs index 00d2727a1..d22c4f25e 100644 --- a/src/highlight/highlight.rs +++ b/src/highlight/highlight.rs @@ -77,7 +77,7 @@ pub fn colorize(text: &wstr, colors: &[HighlightSpec], vars: &dyn Environment) - outp.writech(c); } outp.set_color(RgbColor::NORMAL, RgbColor::NORMAL); - outp.contents().to_owned() // TODO should move + outp.contents().to_owned() } /// Perform syntax highlighting for the shell commands in buff. The result is stored in the color diff --git a/src/parse_execution.rs b/src/parse_execution.rs index acd85766c..d588d92bf 100644 --- a/src/parse_execution.rs +++ b/src/parse_execution.rs @@ -1418,8 +1418,7 @@ fn expand_arguments_from_nodes( ExpandResultCode::ok => {} } - // Now copy over any expanded arguments. Use std::move() to avoid extra allocations; this - // is called very frequently. + // Now copy over any expanded arguments. if let Some(additional) = (out_arguments.len() + arg_expanded.len()).checked_sub(out_arguments.capacity()) {