nushell/crates/nu-command/src/math
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
..
abs.rs Fix signature for math abs (#9844) 2023-07-28 23:32:59 +02:00
avg.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
ceil.rs Narrow signature of math ceil/floor (#9836) 2023-07-28 12:31:48 -05:00
floor.rs Narrow signature of math ceil/floor (#9836) 2023-07-28 12:31:48 -05:00
log.rs Fix math log signature (#9845) 2023-07-28 23:47:00 +02:00
math_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
max.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
median.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
min.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
mod.rs cratification: part III of the math commands to nu-cmd-extra (#9674) 2023-07-13 09:11:26 -07:00
mode.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
product.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
reducers.rs Fix clippy warnings (upcoming) (#9282) 2023-05-25 10:58:18 +12:00
round.rs Remove Signature.vectorizes_over_list entirely (#9777) 2023-07-26 23:34:43 +02:00
sqrt.rs Remove Signature.vectorizes_over_list entirely (#9777) 2023-07-26 23:34:43 +02:00
stddev.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
sum.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
utils.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
variance.rs Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00