aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f33568c..95dd5ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -180,7 +180,7 @@ impl Value {
for key in path.split('.') {
match cur_value {
&Table(ref hm) => {
- match hm.find_with(|k| key.cmp(&k.as_slice())) {
+ match hm.find_with(|k| key.cmp(k.as_slice())) {
Some(v) => cur_value = v,
_ => return None
}