format: libpaket: utils.rs

This commit is contained in:
jane400 2024-09-16 10:15:39 +02:00 committed by jane400
parent 0b2ae19085
commit dc1987a77b

View file

@ -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);