From 1d5f13ddca9e830e73291ec8dcad95f6121f7f6e Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Thu, 5 Dec 2019 08:57:03 +1300 Subject: [PATCH] formatting --- src/evaluate/operator.rs | 4 +++- src/shell/help_shell.rs | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/evaluate/operator.rs b/src/evaluate/operator.rs index 0915c222cb..8880630bcc 100644 --- a/src/evaluate/operator.rs +++ b/src/evaluate/operator.rs @@ -19,7 +19,9 @@ pub fn apply_operator( } Operator::Dot => Ok(UntaggedValue::boolean(false)), Operator::Contains => contains(left, right).map(UntaggedValue::boolean), - Operator::NotContains => contains(left, right).map(Not::not).map(UntaggedValue::boolean), + Operator::NotContains => contains(left, right) + .map(Not::not) + .map(UntaggedValue::boolean), } } diff --git a/src/shell/help_shell.rs b/src/shell/help_shell.rs index f513781a90..9dafccd34b 100644 --- a/src/shell/help_shell.rs +++ b/src/shell/help_shell.rs @@ -3,11 +3,13 @@ use crate::commands::cp::CopyArgs; use crate::commands::mkdir::MkdirArgs; use crate::commands::mv::MoveArgs; use crate::commands::rm::RemoveArgs; -use crate::data::{command_dict}; +use crate::data::command_dict; use crate::prelude::*; use crate::shell::shell::Shell; use nu_errors::ShellError; -use nu_protocol::{Primitive, ReturnSuccess, ShellTypeName, TaggedDictBuilder, UntaggedValue, Value}; +use nu_protocol::{ + Primitive, ReturnSuccess, ShellTypeName, TaggedDictBuilder, UntaggedValue, Value, +}; use nu_source::Tagged; use std::ffi::OsStr; use std::path::PathBuf;