From 30c39d4f6f7149f8c4585c45736bae2766f62b7f Mon Sep 17 00:00:00 2001 From: Ron Mordechai Date: Thu, 21 Sep 2023 22:51:16 +0300 Subject: [PATCH] Allow cloning JsonPathInst --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 0eb4dca..f86c28d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -165,6 +165,7 @@ pub trait JsonPathQuery { fn path(self, query: &str) -> Result; } +#[derive(Clone)] pub struct JsonPathInst { inner: JsonPath, }