From 28b26ca44d4f7d5e5d3375f65b3e457438472158 Mon Sep 17 00:00:00 2001 From: Gabriel B Gutierrez Date: Thu, 14 Oct 2021 18:14:59 -0300 Subject: [PATCH] supress warnings --- crates/nu-command/src/filesystem/cp.rs | 1 + crates/nu-command/src/filesystem/mv.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/nu-command/src/filesystem/cp.rs b/crates/nu-command/src/filesystem/cp.rs index 730725b70..4c44b26a6 100644 --- a/crates/nu-command/src/filesystem/cp.rs +++ b/crates/nu-command/src/filesystem/cp.rs @@ -12,6 +12,7 @@ use crate::filesystem::util::FileStructure; pub struct Cp; +#[allow(unused_must_use)] impl Command for Cp { fn name(&self) -> &str { "cp" diff --git a/crates/nu-command/src/filesystem/mv.rs b/crates/nu-command/src/filesystem/mv.rs index 70869d1d9..37aa625b8 100644 --- a/crates/nu-command/src/filesystem/mv.rs +++ b/crates/nu-command/src/filesystem/mv.rs @@ -9,6 +9,7 @@ use nu_protocol::{ShellError, Signature, SyntaxShape, Value}; pub struct Mv; +#[allow(unused_must_use)] impl Command for Mv { fn name(&self) -> &str { "mv"