nushell/crates/nu-cli/src
Stefan Holderbach cc39069e13
Reuse existing small allocations if possible (#12335)
Those allocations are all small and insignificant in the grand scheme of
things and the optimizer may be able to resolve some of those but better
to be nice anyways.

Primarily inspired by the new
[`clippy::assigning_clones`](https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones)

- **Avoid reallocs with `clone_from` in `nu-parser`**
- **Avoid realloc on assignment in `Stack`**
- **Fix `clippy::assigning_clones` in `nu-cli`**
- **Reuse allocations in `nu-explore` if possible**
2024-03-30 14:04:11 +01:00
..
commands Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
completions Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
menus Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
config_files.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
eval_cmds.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
eval_file.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Send LSP Completion Item Kind (#11443) 2024-03-24 20:14:12 -05:00
nu_highlight.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
print.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
prompt_update.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
prompt.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
reedline_config.rs add a few more logging statements for debugging startup (#12316) 2024-03-28 11:27:12 -05:00
repl.rs Reuse existing small allocations if possible (#12335) 2024-03-30 14:04:11 +01:00
syntax_highlight.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
util.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00