Skip to content

Commit 61ef886

Browse files
Fix Clippy (#51)
1 parent 106af2e commit 61ef886

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/attributes.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ impl FromMeta for IdentList {
3535
NestedMeta::Meta(m) => m,
3636
NestedMeta::Lit(l) => {
3737
return Err(Error::custom(format!(
38-
"expected ident, got literal: {:?}",
39-
l
38+
"expected ident, got literal: {l:?}"
4039
)))
4140
}
4241
};
4342
let path = meta.path();
4443
path.get_ident()
4544
.cloned()
46-
.ok_or(Error::custom(format!("can't parse as ident: {:?}", path)))
45+
.ok_or(Error::custom(format!("can't parse as ident: {path:?}")))
4746
})
4847
.collect::<Result<_, _>>()?;
4948
Ok(Self { idents })

0 commit comments

Comments
 (0)