mirror of
https://github.com/nushell/nushell.git
synced 2025-08-12 17:58:05 +02:00
Rework for new clippy lints (#12736)
- **Clippy lint `assigning_clones`** - **Clippy lint `legacy_numeric_constants`** - **`clippy::float_equality_without_abs`** - **`nu-table`: clippy::zero_repeat_side_effects** --------- Co-authored-by: Ian Manske <ian.manske@pm.me>
This commit is contained in:
committed by
GitHub
parent
0805f1fd90
commit
b88d8726d0
@ -66,7 +66,7 @@ impl PluginRegistryFile {
|
||||
error_span: Option<Span>,
|
||||
) -> Result<(), ShellError> {
|
||||
// Update the Nushell version before writing
|
||||
self.nushell_version = env!("CARGO_PKG_VERSION").to_owned();
|
||||
env!("CARGO_PKG_VERSION").clone_into(&mut self.nushell_version);
|
||||
|
||||
// Format is brotli compressed messagepack
|
||||
let mut brotli_writer =
|
||||
|
Reference in New Issue
Block a user