nushell/crates/nu-protocol/src/engine
Devyn Cairns fdf7f28d07
Address feedback from PR #12229 (#12242)
# Description
@sholderbach left a very helpful review and this just implements the
suggestions he made.

Didn't notice any difference in performance, but there could potentially
be for a long running Nushell session or one that loads a lot of stuff.

I also caught a bug where nu-protocol won't build without `plugin`
because of the previous conditional import. Oops. Fixed.

# User-Facing Changes
`blocks` and `modules` type in `EngineState` changed again. Shouldn't
affect plugins or anything else though really

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

---------

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2024-03-20 20:16:18 +01:00
..
cached_file.rs Refactor source cache into CachedFile struct (#12240) 2024-03-20 19:43:50 +01:00
call_info.rs Back to working state 2021-09-03 06:21:37 +12:00
capture_block.rs Use Vec for Closure captures (#10940) 2023-11-08 00:43:28 +01:00
command.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
engine_state.rs Address feedback from PR #12229 (#12242) 2024-03-20 20:16:18 +01:00
mod.rs Refactor source cache into CachedFile struct (#12240) 2024-03-20 19:43:50 +01:00
overlay.rs Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00
pattern_match.rs Support pattern matching null literals (#10829) 2023-10-25 06:30:45 +08:00
stack.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
state_delta.rs Address feedback from PR #12229 (#12242) 2024-03-20 20:16:18 +01:00
state_working_set.rs Address feedback from PR #12229 (#12242) 2024-03-20 20:16:18 +01:00
stdio.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
usage.rs Split up nu-protocol/src/engine/engine_state.rs (#10368) 2023-09-21 22:53:36 +02:00
variable.rs Restructure nu-protocol in more meaningful units (#11917) 2024-03-10 18:45:45 +01:00