nushell/crates/nu-cli/src
Piepmatz f0c83a4459
Replace raw usize IDs with new types (#13832)
# Description

In this PR I replaced most of the raw usize IDs with
[newtypes](https://doc.rust-lang.org/rust-by-example/generics/new_types.html).
Some other IDs already started using new types and in this PR I did not
want to touch them. To make the implementation less repetitive, I made
use of a generic `Id<T>` with marker structs. If this lands I would try
to move make other IDs also in this pattern.

Also at some places I needed to use `cast`, I'm not sure if the type was
incorrect and therefore casting not needed or if actually different ID
types intermingle sometimes.

# User-Facing Changes

Probably few, if you got a `DeclId` via a function and placed it later
again it will still work.
2024-09-30 13:20:15 +02:00
..
commands Use IntoValue in config code (#13751) 2024-09-05 09:44:23 +02:00
completions Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
menus Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
config_files.rs Set current working directory at startup (#12953) 2024-09-25 13:04:26 -05:00
eval_cmds.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
eval_file.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
lib.rs Set current working directory at startup (#12953) 2024-09-25 13:04:26 -05:00
nu_highlight.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
print.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
prompt_update.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
prompt.rs cleanup osc calls for shell_integration (#12810) 2024-05-08 13:34:04 -05:00
reedline_config.rs Support kitty key modifiers in keybindings (#13906) 2024-09-24 15:37:04 +02:00
repl.rs Set current working directory at startup (#12953) 2024-09-25 13:04:26 -05:00
syntax_highlight.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
util.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00