From abba959add893a7fffd73ba84440cd372ad204bc Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Thu, 20 Jun 2019 14:18:27 +0200 Subject: [PATCH] Remove needless lifetime --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 0984c732..10b0b570 100644 --- a/src/config.rs +++ b/src/config.rs @@ -156,7 +156,7 @@ impl Config { } /// 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) { Ok(inner) => inner, Err(_) => None,