mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-13 11:18:17 +01:00
Merge pull request #22 from teloxide/impl_payload_must_use
add #[must_use] attr to payloads implemented by macro
This commit is contained in:
commit
08bae64348
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ macro_rules! impl_payload {
|
|||
}
|
||||
) => {
|
||||
#[serde_with_macros::skip_serializing_none]
|
||||
#[must_use = "Requests do nothing unless sent"]
|
||||
$(
|
||||
#[ $($method_meta)* ]
|
||||
)*
|
||||
|
|
Loading…
Add table
Reference in a new issue