mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix fold_attrs
format
This commit is contained in:
parent
7c7f58dffb
commit
f979cc4f26
1 changed files with 8 additions and 4 deletions
|
@ -18,8 +18,12 @@ pub(crate) fn fold_attrs<A, R>(
|
|||
.iter()
|
||||
.filter(|&a| filter(a))
|
||||
.flat_map(|attribute| {
|
||||
let Some(key) = attribute.path.get_ident().cloned()
|
||||
else { return vec![Err(compile_error_at("expected an ident", attribute.path.span()))] };
|
||||
let Some(key) = attribute.path.get_ident().cloned() else {
|
||||
return vec![Err(compile_error_at(
|
||||
"expected an ident",
|
||||
attribute.path.span(),
|
||||
))];
|
||||
};
|
||||
|
||||
match (|input: ParseStream<'_>| Attrs::parse_with_key(input, key))
|
||||
.parse(attribute.tokens.clone().into())
|
||||
|
|
Loading…
Reference in a new issue