format: libpaket: utils.rs
This commit is contained in:
parent
0b2ae19085
commit
dc1987a77b
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ macro_rules! parse_json_response {
|
||||||
let mut unused = std::collections::BTreeSet::new();
|
let mut unused = std::collections::BTreeSet::new();
|
||||||
|
|
||||||
println!("res({}): {}", stringify!($type), res);
|
println!("res({}): {}", stringify!($type), res);
|
||||||
let res: Result<$type,_> = serde_ignored::deserialize(jd, |path| {
|
let res: Result<$type, _> = serde_ignored::deserialize(jd, |path| {
|
||||||
unused.insert(path.to_string());
|
unused.insert(path.to_string());
|
||||||
});
|
});
|
||||||
println!("res({}): {:?}", stringify!($type), unused);
|
println!("res({}): {:?}", stringify!($type), unused);
|
||||||
|
@ -205,7 +205,7 @@ macro_rules! parse_json_response_from_apiresult {
|
||||||
let mut unused = std::collections::BTreeSet::new();
|
let mut unused = std::collections::BTreeSet::new();
|
||||||
|
|
||||||
println!("res({}): {}", stringify!($type), res);
|
println!("res({}): {}", stringify!($type), res);
|
||||||
let res: Result<APIResult<$type>,_> = serde_ignored::deserialize(jd, |path| {
|
let res: Result<APIResult<$type>, _> = serde_ignored::deserialize(jd, |path| {
|
||||||
unused.insert(path.to_string());
|
unused.insert(path.to_string());
|
||||||
});
|
});
|
||||||
println!("res({}): {:?}", stringify!($type), unused);
|
println!("res({}): {:?}", stringify!($type), unused);
|
||||||
|
|
Loading…
Reference in a new issue