nushell/crates/nu-command/src
Darren Schroeder ea22c319b6
make math sqrt const (#13487)
# Description

Just a quick PR to demonstrate one way to make commands const.
related to https://github.com/nushell/nushell/issues/13482

# User-Facing Changes
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking changes. -->

# Tests + Formatting
<!--
Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used` to
check that you're using the standard code style
- `cargo test --workspace` to check that all tests pass (on Windows make
sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- `cargo run -- -c "use toolkit.nu; toolkit test stdlib"` to run the
tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
2024-07-30 08:53:41 -05:00
..
bytes Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
charting Add derive macros for FromValue and IntoValue to ease the use of Values in Rust code (#13031) 2024-06-17 16:05:11 -07:00
conversions Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
database don't force stripping ansi codes from strings in stor (#13464) 2024-07-30 08:52:28 -05:00
date Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
debug Fix setting metadata on byte streams (#13416) 2024-07-21 21:15:36 +00:00
env Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
experimental Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
filesystem add --quiet flag to watch command (#13415) 2024-07-20 12:34:27 +02:00
filters reduce: supply <acc> to the closure as pipeline input as well (#13461) 2024-07-30 08:51:51 -05:00
formats Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
generators generate: switch the position of <initial> and <closure>, so the closure can have default parameters (#13393) 2024-07-19 00:22:28 -07:00
hash Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
help Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
math make math sqrt const (#13487) 2024-07-30 08:53:41 -05:00
misc Revert "Span ID Refactor (Step 2): Make Call SpanId-friendly (#13268)" (#13292) 2024-07-04 00:02:13 +03:00
network Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
path Path migration 1 (#13309) 2024-07-09 17:25:23 +08:00
platform Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
random Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
removed Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
shells Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
stor Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
strings Fix output format borken in char --list (#13417) 2024-07-21 06:30:14 -05:00
system Switch from dirs_next 2.0 to dirs 5.0 (#13384) 2024-07-16 07:16:26 -05:00
viewers Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
default_context.rs Deprecate group in favor of chunks (#13377) 2024-07-16 03:49:00 +00:00
example_test.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
progress_bar.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
sort_utils.rs Add derive macros for FromValue and IntoValue to ease the use of Values in Rust code (#13031) 2024-06-17 16:05:11 -07:00