Remove unnecessary lifetime

This commit is contained in:
Erick Tryzelaar
2015-05-20 09:02:38 -07:00
parent 81d617bd93
commit 859cdcc815
+1 -1
View File
@@ -57,7 +57,7 @@ impl Value {
/// ///
/// assert!(obj.lookup("x.a").unwrap() == &Value::U64(1)); /// assert!(obj.lookup("x.a").unwrap() == &Value::U64(1));
/// ``` /// ```
pub fn lookup<'a>(&'a self, path: &'a str) -> Option<&'a Value> { pub fn lookup<'a>(&'a self, path: &str) -> Option<&'a Value> {
let mut target = self; let mut target = self;
for key in path.split('.') { for key in path.split('.') {
match target.find(key) { match target.find(key) {