mirror of
https://github.com/nushell/nushell.git
synced 2025-07-12 04:15:57 +02:00
Fix clippy warnings (#4176)
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
use derive_new::new;
|
||||
use nu_protocol::hir;
|
||||
|
||||
#[derive(new, Debug)]
|
||||
pub(crate) struct Command {
|
||||
pub(crate) args: hir::Call,
|
||||
}
|
@ -1,5 +1 @@
|
||||
mod dynamic;
|
||||
pub(crate) mod external;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use dynamic::Command as DynamicCommand;
|
||||
|
@ -11,12 +11,6 @@ use nu_protocol::{
|
||||
|
||||
pub struct WithEnv;
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct WithEnvArgs {
|
||||
variable: Value,
|
||||
block: CapturedBlock,
|
||||
}
|
||||
|
||||
impl WholeStreamCommand for WithEnv {
|
||||
fn name(&self) -> &str {
|
||||
"with-env"
|
||||
|
@ -163,7 +163,7 @@ fn get_current_date() -> (i32, u32, u32) {
|
||||
|
||||
fn add_months_of_year_to_table(
|
||||
args: &CommandArgs,
|
||||
mut calendar_vec_deque: &mut VecDeque<Value>,
|
||||
calendar_vec_deque: &mut VecDeque<Value>,
|
||||
tag: &Tag,
|
||||
selected_year: i32,
|
||||
(start_month, end_month): (u32, u32),
|
||||
@ -181,7 +181,7 @@ fn add_months_of_year_to_table(
|
||||
|
||||
let add_month_to_table_result = add_month_to_table(
|
||||
args,
|
||||
&mut calendar_vec_deque,
|
||||
calendar_vec_deque,
|
||||
tag,
|
||||
selected_year,
|
||||
month_number,
|
||||
|
@ -6,12 +6,6 @@ use nu_protocol::{Dictionary, Signature, UntaggedValue};
|
||||
|
||||
pub struct TermSize;
|
||||
|
||||
#[derive(Deserialize, Clone)]
|
||||
pub struct TermSizeArgs {
|
||||
wide: bool,
|
||||
tall: bool,
|
||||
}
|
||||
|
||||
impl WholeStreamCommand for TermSize {
|
||||
fn name(&self) -> &str {
|
||||
"term size"
|
||||
|
Reference in New Issue
Block a user