formatting

This commit is contained in:
Jonathan Turner 2019-12-05 08:57:03 +13:00
parent d12c16a331
commit 1d5f13ddca
2 changed files with 7 additions and 3 deletions

View file

@ -19,7 +19,9 @@ pub fn apply_operator(
} }
Operator::Dot => Ok(UntaggedValue::boolean(false)), Operator::Dot => Ok(UntaggedValue::boolean(false)),
Operator::Contains => contains(left, right).map(UntaggedValue::boolean), 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),
} }
} }

View file

@ -3,11 +3,13 @@ use crate::commands::cp::CopyArgs;
use crate::commands::mkdir::MkdirArgs; use crate::commands::mkdir::MkdirArgs;
use crate::commands::mv::MoveArgs; use crate::commands::mv::MoveArgs;
use crate::commands::rm::RemoveArgs; use crate::commands::rm::RemoveArgs;
use crate::data::{command_dict}; use crate::data::command_dict;
use crate::prelude::*; use crate::prelude::*;
use crate::shell::shell::Shell; use crate::shell::shell::Shell;
use nu_errors::ShellError; 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 nu_source::Tagged;
use std::ffi::OsStr; use std::ffi::OsStr;
use std::path::PathBuf; use std::path::PathBuf;