mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-05-07 06:52:13 +00:00
안쓰는 코드 제거
This commit is contained in:
parent
8982e07421
commit
e0a85b45b1
@ -16,13 +16,13 @@ license = "MIT"
|
||||
travis-ci = { repository = "freestrings/jsonpath", branch = "master" }
|
||||
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
env_logger = "0.6.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = { version = "1.0", features = ["preserve_order"] }
|
||||
indexmap = "1.0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
log = "0.4"
|
||||
env_logger = "0.6.0"
|
||||
bencher = "0.1.5"
|
||||
|
||||
[lib]
|
||||
|
@ -254,38 +254,6 @@ impl Into<RefValueWrapper> for RefValue {
|
||||
}
|
||||
}
|
||||
|
||||
//impl Into<RefValue> for &RefValue {
|
||||
// fn into(self) -> RefValue {
|
||||
// match self {
|
||||
// RefValue::Null => RefValue::Null,
|
||||
// RefValue::Bool(b) => RefValue::Bool(*b),
|
||||
// RefValue::String(s) => RefValue::String(s.to_string()),
|
||||
// RefValue::Number(n) => {
|
||||
// if n.is_f64() {
|
||||
// RefValue::Number(n.as_u64().unwrap().into())
|
||||
// } else if n.is_i64() {
|
||||
// RefValue::Number(n.as_i64().unwrap().into())
|
||||
// } else if n.is_u64() {
|
||||
// RefValue::Number(n.as_u64().unwrap().into())
|
||||
// } else {
|
||||
// unreachable!()
|
||||
// }
|
||||
// }
|
||||
// RefValue::Array(ay) => {
|
||||
// let vec = ay.iter().map(|a| a.try_unwrap().into()).collect();
|
||||
// RefValue::Array(vec)
|
||||
// }
|
||||
// RefValue::Object(map) => {
|
||||
// let mut ret = IndexMap::new();
|
||||
// for (k, v) in map {
|
||||
// ret.insert(k.to_string(), v.try_unwrap().into());
|
||||
// }
|
||||
// RefValue::Object(ret)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
impl Into<RefValueWrapper> for &Value {
|
||||
fn into(self) -> RefValueWrapper {
|
||||
match self.serialize(super::ser::Serializer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user