nushell/crates/nu-cmd-lang/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
..
core_commands Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
default_context.rs Custom command input/output types (#9690) 2023-07-15 09:51:28 +12:00
example_support.rs Remove Signature.vectorizes_over_list entirely (#9777) 2023-07-26 23:34:43 +02:00
example_test.rs Remove Signature.vectorizes_over_list entirely (#9777) 2023-07-26 23:34:43 +02:00
lib.rs cratification: Example support (#8231) 2023-02-27 13:58:56 -08:00