nushell/crates/nu-command/src/dataframe/eager
nibon7 15ebf45f46
Apply clippy fix for rust 1.63.0 (#6576)
* Apply clippy fix to avoid extra allocation

error: `format!(..)` appended to existing `String`
  --> crates/nu-engine/src/documentation.rs:82:9
   |
82 |         long_desc.push_str(&format!("\n{G}Subcommands{RESET}:\n"));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::format-push-string` implied by `-D warnings`
   = help: consider using `write!` to avoid the extra allocation
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string

error: `format!(..)` appended to existing `String`
  --> crates/nu-engine/src/documentation.rs:96:9
   |
96 |         long_desc.push_str(&format!("\n{G}Parameters{RESET}:\n"));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `write!` to avoid the extra allocation
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string

error: `format!(..)` appended to existing `String`
   --> crates/nu-engine/src/documentation.rs:128:9
    |
128 |         long_desc.push_str(&format!("\n{}Examples{}:", G, RESET));
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider using `write!` to avoid the extra allocation
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string

error: `format!(..)` appended to existing `String`
   --> crates/nu-engine/src/documentation.rs:202:5
    |
202 |     long_desc.push_str(&format!("\n{}Flags{}:\n", G, RESET));
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider using `write!` to avoid the extra allocation
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string

error: could not compile `nu-engine` due to 4 previous errors

* Apply clippy fix to avoid deref on an immutable reference

error: deref on an immutable reference
   --> crates/nu-command/src/dataframe/eager/sql_context.rs:188:77
    |
188 |                         SetExpr::Select(select_stmt) => self.execute_select(&*select_stmt)?,
    |                                                                             ^^^^^^^^^^^^^
    |
    = note: `-D clippy::borrow-deref-ref` implied by `-D warnings`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
help: if you would like to reborrow, try removing `&*`
    |
188 |                         SetExpr::Select(select_stmt) => self.execute_select(select_stmt)?,
    |                                                                             ~~~~~~~~~~~
help: if you would like to deref, try using `&**`
    |
188 |                         SetExpr::Select(select_stmt) => self.execute_select(&**select_stmt)?,
    |                                                                             ~~~~~~~~~~~~~~

error: deref on an immutable reference
   --> crates/nu-command/src/database/values/dsl/expression.rs:252:15
    |
252 |         match &*expr {
    |               ^^^^^^ help: if you would like to reborrow, try removing `&*`: `expr`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref

error: could not compile `nu-command` due to 2 previous errors
2022-09-17 12:10:32 -05:00
..
append.rs Revert "Make $ on variable names optional (#6434)" (#6446) 2022-09-06 05:42:47 +12:00
columns.rs Polars upgrade 0.23 (#6303) 2022-08-12 13:10:36 +01:00
describe.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
drop_duplicates.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
drop_nulls.rs Revert "Make $ on variable names optional (#6434)" (#6446) 2022-09-06 05:42:47 +12:00
drop.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
dtypes.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
dummies.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
filter_with.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
first.rs cmd(df/first): returns the first row by default. (#6312) 2022-08-13 14:08:00 -05:00
get.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
last.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
list.rs Standardise to commands (#5800) 2022-06-17 07:51:50 -05:00
melt.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
mod.rs rename with_sql to query dfr (#6568) 2022-09-16 08:34:58 -05:00
open.rs Support Arrow IPC file format with dataframes (#6548) 2022-09-12 18:30:20 -05:00
query_dfr.rs rename with_sql to query dfr (#6568) 2022-09-16 08:34:58 -05:00
rename.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
sample.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
shape.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
slice.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
sql_context.rs Apply clippy fix for rust 1.63.0 (#6576) 2022-09-17 12:10:32 -05:00
sql_expr.rs provide a way to use sql to query dataframes (#6537) 2022-09-15 09:22:00 -05:00
take.rs Revert "Make $ on variable names optional (#6434)" (#6446) 2022-09-06 05:42:47 +12:00
to_arrow.rs Support Arrow IPC file format with dataframes (#6548) 2022-09-12 18:30:20 -05:00
to_csv.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
to_df.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
to_nu.rs Dataframe with real index (#5892) 2022-06-26 17:32:18 -05:00
to_parquet.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
with_column.rs Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00