Remove unused pattern matched tag fields.

This commit is contained in:
Andrés N. Robalino 2020-06-17 12:35:13 -05:00
parent 9f54d238ba
commit 94aac0e8dd
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ impl DirectorySpecificEnvironment {
pub fn new(allowed_directories: Option<Value>) -> DirectorySpecificEnvironment {
let mut allowed_directories = if let Some(Value {
value: UntaggedValue::Table(ref wrapped_directories),
tag: _,
..
}) = allowed_directories
{
wrapped_directories
@ -26,7 +26,7 @@ impl DirectorySpecificEnvironment {
.filter_map(|dirval| {
if let Value {
value: UntaggedValue::Primitive(Primitive::String(ref dir)),
tag: _,
..
} = dirval
{
return Some(PathBuf::from(&dir));

View File

@ -79,7 +79,7 @@ impl Environment {
fn remove_env(&mut self, key: &str) {
if let Some(Value {
value: UntaggedValue::Row(ref mut envs),
tag: _,
..
}) = self.environment_vars
{
envs.entries.remove(key);