Skip to content

Commit

Permalink
chore: apply lint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkornitzer committed May 25, 2024
1 parent e00d356 commit 53200ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mongod-derive/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ pub mod attr {
}
}

pub fn get_lit_str<'a>(
pub fn get_lit_str(
attr_name: &'static str,
meta: &ParseNestedMeta,
) -> Result<syn::LitStr, syn::Error> {
Expand Down
8 changes: 1 addition & 7 deletions mongod-derive/src/mongo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,7 @@ fn impl_struct(
.raw
.attrs
.iter()
.filter_map(|a| {
if a.path().is_ident(BSON) || a.path().is_ident(MONGO) {
None
} else {
Some(a)
}
})
.filter(|a| !(a.path().is_ident(BSON) || a.path().is_ident(MONGO)))
.collect::<Vec<_>>();
if attrs.bson == attr::BsonMode::Serde {
Some(quote! {
Expand Down

0 comments on commit 53200ae

Please sign in to comment.