Bump up 0.1.9

This commit is contained in:
freestrings
2019-04-08 14:44:18 +09:00
parent 30aa38379a
commit 0729a2a47f
6 changed files with 102 additions and 35 deletions

View File

@ -19,8 +19,6 @@ use jsonpath::filter::value_filter::JsonValueFilter;
use jsonpath::parser::parser::{Node, NodeVisitor, Parser};
use jsonpath::ref_value::model::{RefValue, RefValueWrapper};
mod utils;
cfg_if! {
if #[cfg(feature = "wee_alloc")] {
extern crate wee_alloc;
@ -29,6 +27,16 @@ cfg_if! {
}
}
cfg_if! {
if #[cfg(feature = "console_error_panic_hook")] {
extern crate console_error_panic_hook;
pub use self::console_error_panic_hook::set_once as set_panic_hook;
} else {
#[inline]
pub fn set_panic_hook() {}
}
}
fn filter_ref_value(json: RefValueWrapper, node: Node) -> JsValue {
let mut jf = JsonValueFilter::new_from_value(json);
jf.visit(node);

View File

@ -1,11 +0,0 @@
use cfg_if::cfg_if;
cfg_if! {
if #[cfg(feature = "console_error_panic_hook")] {
extern crate console_error_panic_hook;
pub use self::console_error_panic_hook::set_once as set_panic_hook;
} else {
#[inline]
pub fn set_panic_hook() {}
}
}