mirror of
https://github.com/nushell/nushell.git
synced 2025-02-04 20:49:27 +01:00
formatting
This commit is contained in:
parent
d12c16a331
commit
1d5f13ddca
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user