nushell/crates/nu-cli/src
Ian Manske 583ef8674e
Replace &Span with Span since Span is Copy (#9770)
# Description
`Span` is `Copy`, so we probably should not be passing references of
`Span` around. This PR replaces all instances of `&Span` with `Span`,
copying spans where necessary.

# User-Facing Changes
This alters some public functions to take `Span` instead of `&Span` as
input. Namely, `EngineState::get_span_contents`,
`nu_protocol::extract_value`, a bunch of the math commands, and
`Gstat::gstat`.
2023-07-31 21:47:46 +02:00
..
commands Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
completions Apply nightly clippy lints (#9654) 2023-07-12 00:00:31 +02:00
menus Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
config_files.rs Fix config creation during printing (#9353) 2023-06-04 22:04:28 +03:00
eval_cmds.rs Move CLI related commands to nu-cli (#8832) 2023-04-10 10:56:47 +12:00
eval_file.rs Remove broken compile-time overload system (#9677) 2023-07-14 07:05:03 +12:00
lib.rs cratification: move the bytes command to nu-cmd-extra (#9509) 2023-06-23 12:23:08 -07:00
nu_highlight.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
print.rs allow print to take data as input again (#9823) 2023-07-27 21:40:25 +02:00
prompt_update.rs remove nu_cli crate dependency from nu_std (#8807) 2023-04-08 13:53:43 +02:00
prompt.rs FIX: add a space after the default left prompt (#9074) 2023-05-08 13:00:44 -05:00
reedline_config.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
repl.rs Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
syntax_highlight.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
util.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00