nushell/crates/nu-protocol/src
Ian Manske ba880277bf
Remove unnecessary replace_in_variable (#11424)
# Description
`Expression::replace_in_variable` is only called in one place, and it is
called with `new_var_id` = `IN_VARIABLE_ID`. So, it ends up doing
nothing. E.g., adding `debug_assert_eq!(new_var_id, IN_VARIABLE_ID)` in
`replace_in_variable` does not trigger any panic.

# User-Facing Changes
Breaking change for `nu_protocol`.
2023-12-26 18:46:49 +01:00
..
ast Remove unnecessary replace_in_variable (#11424) 2023-12-26 18:46:49 +01:00
config Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
engine Simplify SIGQUIT handling (#11381) 2023-12-21 17:00:38 +01:00
value Lock out new direct construction of Record (#11414) 2023-12-24 13:12:16 +01:00
alias.rs Refactor scope commands (#10023) 2023-08-17 11:58:38 +03:00
cli_error.rs Refactor and fix Config<->Value mechanism (#10896) 2023-11-08 20:31:30 +01:00
did_you_mean.rs Improve case insensitivity consistency (#10884) 2023-11-08 23:58:54 +01:00
eval_base.rs Remove Expr::MatchPattern (#11367) 2023-12-20 18:52:28 +01:00
eval_const.rs Convert remainder of ShellError variants to named fields (#11276) 2023-12-09 18:46:21 -06:00
example.rs remove unused imports: Deserialize, Serialize compiler warning for nu-protocol/src/example.rs (#8514) 2023-03-18 11:45:12 -07:00
exportable.rs Module: support defining const and use const variables inside of function (#9773) 2023-08-01 07:09:52 +08: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 Deprecate --flag: bool in custom command (#11365) 2023-12-21 10:07:08 +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
parse_error.rs Error on use path item1 item2, if item1 is not a module (#11183) 2023-12-05 11:38:45 +01:00
parse_warning.rs Deprecate --flag: bool in custom command (#11365) 2023-12-21 10:07:08 +01:00
pipeline_data.rs Don't create a thread if stderr_stream is None (#11421) 2023-12-25 08:10:15 -06:00
plugin_signature.rs Rename main to script name when running scripts (#9948) 2023-08-12 05:58:49 +12:00
shell_error.rs Convert remainder of ShellError variants to named fields (#11276) 2023-12-09 18:46:21 -06:00
signature.rs Move history into their own module (#11308) 2023-12-15 13:17:12 +01:00
span.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
syntax_shape.rs Remove Expr::MatchPattern (#11367) 2023-12-20 18:52:28 +01:00
ty.rs Remove Expr::MatchPattern (#11367) 2023-12-20 18:52:28 +01:00
util.rs Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
variable.rs Fix broken constants in scopes (#9679) 2023-07-14 00:02:05 +03:00