aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-06-01 12:36:30 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-06-01 12:36:30 -0700
commit7363dbe7f599a2373e6e2a749f51c76469dabdcf (patch)
treeb96f00268672dcc546cc720852f8c8c7a89a5a2c
parent6f43fc3b296bebdf95611d64ccb359b18b8da59b (diff)
parent3639e62a3b3dbe0b9830810192a1ef61549e727e (diff)
downloadmilf-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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 21b3e21..79a015d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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,