nushell/crates/nu-protocol/src/engine
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
..
call_info.rs Back to working state 2021-09-03 06:21:37 +12:00
capture_block.rs revert: move to ahash (#9464) 2023-06-18 15:27:57 +12:00
command.rs Re-implement aliases (#8123) 2023-02-27 20:44:05 +13:00
engine_state.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
mod.rs Add pattern matching (#8590) 2023-03-24 14:52:01 +13:00
overlay.rs Fix broken constants in scopes (#9679) 2023-07-14 00:02:05 +03:00
pattern_match.rs make the pattern-matcher and eval engine use the same unit computation (#8973) 2023-05-12 12:18:11 -05:00
stack.rs revert: move to ahash (#9464) 2023-06-18 15:27:57 +12:00