mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-18 15:20:15 +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);
|
new_name = rename_by_rule(name, &rename_rule);
|
||||||
renamed = true;
|
renamed = true;
|
||||||
}
|
}
|
||||||
Ok(Self {
|
Ok(Self { prefix, description, name: new_name, renamed })
|
||||||
prefix,
|
|
||||||
description,
|
|
||||||
name: new_name,
|
|
||||||
renamed,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,9 +50,5 @@ fn parse_attrs(attrs: &[Attr]) -> Result<CommandAttrs, String> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(CommandAttrs {
|
Ok(CommandAttrs { prefix, description, rename: rename_rule })
|
||||||
prefix,
|
|
||||||
description,
|
|
||||||
rename: rename_rule,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,7 @@ impl CommandEnum {
|
||||||
_ => return Err("disallowed value".to_owned()),
|
_ => return Err("disallowed value".to_owned()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(Self {
|
Ok(Self { prefix, description, rename_rule: rename })
|
||||||
prefix,
|
|
||||||
description,
|
|
||||||
rename_rule: rename,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,9 +46,5 @@ fn parse_attrs(attrs: &[Attr]) -> Result<CommandAttrs, String> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(CommandAttrs {
|
Ok(CommandAttrs { prefix, description, rename: rename_rule })
|
||||||
prefix,
|
|
||||||
description,
|
|
||||||
rename: rename_rule,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue