mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix rustfmt check
This commit is contained in:
parent
1efc086df4
commit
469b873ec0
2 changed files with 4 additions and 21 deletions
|
@ -23,12 +23,7 @@ impl Command {
|
|||
new_name = rename_by_rule(name, &rename_rule);
|
||||
renamed = true;
|
||||
}
|
||||
Ok(Self {
|
||||
prefix,
|
||||
description,
|
||||
name: new_name,
|
||||
renamed,
|
||||
})
|
||||
Ok(Self { prefix, description, name: new_name, renamed })
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,9 +50,5 @@ fn parse_attrs(attrs: &[Attr]) -> Result<CommandAttrs, String> {
|
|||
}
|
||||
}
|
||||
|
||||
Ok(CommandAttrs {
|
||||
prefix,
|
||||
description,
|
||||
rename: rename_rule,
|
||||
})
|
||||
Ok(CommandAttrs { prefix, description, rename: rename_rule })
|
||||
}
|
||||
|
|
|
@ -19,11 +19,7 @@ impl CommandEnum {
|
|||
_ => return Err("disallowed value".to_owned()),
|
||||
}
|
||||
}
|
||||
Ok(Self {
|
||||
prefix,
|
||||
description,
|
||||
rename_rule: rename,
|
||||
})
|
||||
Ok(Self { prefix, description, rename_rule: rename })
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -50,9 +46,5 @@ fn parse_attrs(attrs: &[Attr]) -> Result<CommandAttrs, String> {
|
|||
}
|
||||
}
|
||||
|
||||
Ok(CommandAttrs {
|
||||
prefix,
|
||||
description,
|
||||
rename: rename_rule,
|
||||
})
|
||||
Ok(CommandAttrs { prefix, description, rename: rename_rule })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue