diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-06-01 12:36:30 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2016-06-01 12:36:30 -0700 |
commit | 7363dbe7f599a2373e6e2a749f51c76469dabdcf (patch) | |
tree | b96f00268672dcc546cc720852f8c8c7a89a5a2c | |
parent | 6f43fc3b296bebdf95611d64ccb359b18b8da59b (diff) | |
parent | 3639e62a3b3dbe0b9830810192a1ef61549e727e (diff) | |
download | milf-rs-7363dbe7f599a2373e6e2a749f51c76469dabdcf.tar.gz milf-rs-7363dbe7f599a2373e6e2a749f51c76469dabdcf.zip |
Merge pull request #103 from MarkSwanson/lookup-lifetime-enhancement
lookup() and lookup_mut() lifetime enhancements.
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -180,7 +180,7 @@ impl Value { /// let no_bar = value.lookup("test.bar"); /// assert_eq!(no_bar.is_none(), true); /// ``` - pub fn lookup<'a>(&'a self, path: &'a str) -> Option<&'a Value> { + pub fn lookup(&self, path: &str) -> Option<&Value> { let ref path = match Parser::new(path).lookup() { Some(path) => path, None => return None, |