Remove unneeded scopes
This commit is contained in:
parent
0c89fafe20
commit
e66d837642
1 changed files with 2 additions and 10 deletions
|
@ -56,18 +56,10 @@ impl IntoKeyValue<String, String> for String {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
R.captures(&self[..])
|
R.captures(&self[..])
|
||||||
.map(|caps| {
|
.map(|caps| caps.name("VALUE").or(caps.name("QVALUE")).unwrap_or(""))
|
||||||
caps.name("VALUE")
|
|
||||||
.or(caps.name("QVALUE"))
|
|
||||||
.unwrap_or("")
|
|
||||||
})
|
|
||||||
};
|
};
|
||||||
|
|
||||||
key.and_then(|k| {
|
key.and_then(|k| value.and_then(|v| Some(KeyValue::new(String::from(k), String::from(v)))))
|
||||||
value.and_then(|v| {
|
|
||||||
Some(KeyValue::new(String::from(k), String::from(v)))
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue