Apply suggestions from code review

Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
This commit is contained in:
Waffle Lapkin 2020-11-15 10:51:36 +03:00 committed by GitHub
parent 62b65cb7a6
commit 79b5c41bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,9 +184,9 @@ macro_rules! impl_payload {
}
impl $Method {
// We mirror telegram API and can't do anything with too many arguments
// We mirror Telegram API and can't do anything with too many arguments.
#[allow(clippy::too_many_arguments)]
// It's just easier for macros to generate such code
// It's just easier for macros to generate such code.
#[allow(clippy::redundant_field_names)]
$vi fn new($($($fields : impl_payload!(@convert? $FTy $([$conv])?)),*)?) -> Self {
Self {