mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
Remove unused pattern matched tag fields.
This commit is contained in:
parent
9f54d238ba
commit
94aac0e8dd
@ -18,7 +18,7 @@ impl DirectorySpecificEnvironment {
|
|||||||
pub fn new(allowed_directories: Option<Value>) -> DirectorySpecificEnvironment {
|
pub fn new(allowed_directories: Option<Value>) -> DirectorySpecificEnvironment {
|
||||||
let mut allowed_directories = if let Some(Value {
|
let mut allowed_directories = if let Some(Value {
|
||||||
value: UntaggedValue::Table(ref wrapped_directories),
|
value: UntaggedValue::Table(ref wrapped_directories),
|
||||||
tag: _,
|
..
|
||||||
}) = allowed_directories
|
}) = allowed_directories
|
||||||
{
|
{
|
||||||
wrapped_directories
|
wrapped_directories
|
||||||
@ -26,7 +26,7 @@ impl DirectorySpecificEnvironment {
|
|||||||
.filter_map(|dirval| {
|
.filter_map(|dirval| {
|
||||||
if let Value {
|
if let Value {
|
||||||
value: UntaggedValue::Primitive(Primitive::String(ref dir)),
|
value: UntaggedValue::Primitive(Primitive::String(ref dir)),
|
||||||
tag: _,
|
..
|
||||||
} = dirval
|
} = dirval
|
||||||
{
|
{
|
||||||
return Some(PathBuf::from(&dir));
|
return Some(PathBuf::from(&dir));
|
||||||
|
2
crates/nu-cli/src/env/environment.rs
vendored
2
crates/nu-cli/src/env/environment.rs
vendored
@ -79,7 +79,7 @@ impl Environment {
|
|||||||
fn remove_env(&mut self, key: &str) {
|
fn remove_env(&mut self, key: &str) {
|
||||||
if let Some(Value {
|
if let Some(Value {
|
||||||
value: UntaggedValue::Row(ref mut envs),
|
value: UntaggedValue::Row(ref mut envs),
|
||||||
tag: _,
|
..
|
||||||
}) = self.environment_vars
|
}) = self.environment_vars
|
||||||
{
|
{
|
||||||
envs.entries.remove(key);
|
envs.entries.remove(key);
|
||||||
|
Loading…
Reference in New Issue
Block a user