mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Cargo fmt
This commit is contained in:
parent
a52fe8eeb5
commit
83f5508495
2 changed files with 3 additions and 5 deletions
|
@ -223,10 +223,8 @@ fn params(params: impl Iterator<Item = impl Borrow<Param>>) -> String {
|
|||
{
|
||||
"\n #[serde(flatten)]"
|
||||
}
|
||||
Type::ArrayOf(b) if **b == Type::RawTy("MessageId".to_string()) =>
|
||||
{
|
||||
"\n #[serde(with = \
|
||||
\"crate::types::vec_msg_id_as_vec_int\")]"
|
||||
Type::ArrayOf(b) if **b == Type::RawTy("MessageId".to_string()) => {
|
||||
"\n #[serde(with = \"crate::types::vec_msg_id_as_vec_int\")]"
|
||||
}
|
||||
_ => "",
|
||||
};
|
||||
|
|
|
@ -572,7 +572,7 @@ pub(crate) mod vec_msg_id_as_vec_int {
|
|||
}
|
||||
|
||||
{
|
||||
let s = Struct {msg_ids: vec![MessageId(1), MessageId(2)]};
|
||||
let s = Struct { msg_ids: vec![MessageId(1), MessageId(2)] };
|
||||
let json = serde_json::to_string(&s).unwrap();
|
||||
assert_eq!(json, "{\"msg_ids\":[1,2]}");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue