nushell/crates/nu-protocol/src
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
..
ast Address feedback from PR #12229 (#12242) 2024-03-20 20:16:18 +01:00
config Keep plugins persistently running in the background (#12064) 2024-03-09 17:10:22 -06:00
debugger IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
engine Address feedback from PR #12229 (#12242) 2024-03-20 20:16:18 +01:00
errors IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
pipeline_data IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
plugin Keep plugins persistently running in the background (#12064) 2024-03-09 17:10:22 -06:00
value Make custom value type handling more consistent (#12230) 2024-03-19 11:09:59 +01:00
alias.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
did_you_mean.rs Improve case insensitivity consistency (#10884) 2023-11-08 23:58:54 +01:00
eval_base.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
eval_const.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
example.rs Fix ignored clippy lints (#12160) 2024-03-11 19:46:04 +01:00
id.rs Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
lev_distance.rs Suggest existing variables on not found (#8902) 2023-05-02 18:17:14 +03:00
lib.rs Restructure nu-protocol in more meaningful units (#11917) 2024-03-10 18:45:45 +01:00
module.rs Error on use path item1 item2, if item1 is not a module (#11183) 2023-12-05 11:38:45 +01:00
signature.rs Replace debug_assert! with assert! in Signature::check_names (#11937) 2024-02-22 16:17:06 -06:00
span.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
syntax_shape.rs open, rm, umv, cp, rm and du: Don't globs if inputs are variables or string interpolation (#11886) 2024-02-23 09:17:09 +08:00
ty.rs Glob: don't allow implicit casting between glob and string (#11992) 2024-02-28 23:05:35 +08:00
util.rs Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00