Remove needless lifetime

This commit is contained in:
Jeremy Stucki 2019-06-20 14:18:27 +02:00
parent ea15e55829
commit abba959add
No known key found for this signature in database
GPG Key ID: EEFCA93148042655
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ impl Config {
} }
/// Fetch a value from the `Config` so you can mutate it. /// Fetch a value from the `Config` so you can mutate it.
pub fn get_mut<'a>(&'a mut self, key: &str) -> Option<&'a mut Value> { pub fn get_mut(&mut self, key: &str) -> Option<&mut Value> {
match self.rest.read_mut(key) { match self.rest.read_mut(key) {
Ok(inner) => inner, Ok(inner) => inner,
Err(_) => None, Err(_) => None,