From 2efb019155c324629f549e1eef6ab2cc02534897 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Wed, 31 Jul 2019 16:34:24 +0300 Subject: [PATCH] Update lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1120788..b42d4fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -299,7 +299,7 @@ pub fn selector_as( /// &json!({"name": "친구1", "age": 20}) /// ]); /// ``` -pub fn select<'a>(json: &'a Value, path: &'a str) -> Result, JsonPathError> { +pub fn select<'a>(json: &'a Value, path: &str) -> Result, JsonPathError> { Selector::default().str_path(path)?.value(json).select() }