Skip to content

Commit

Permalink
macros: clippy - allow manual unwrap_or_default
Browse files Browse the repository at this point in the history
Clippy complains about the code generated by
`darling` crate. This commit silences clippy by allowing
to perform manual unwrap_or_default.
  • Loading branch information
muzarski committed Jun 19, 2024
1 parent d6cb5f1 commit cb332fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scylla-macros/src/serialize/row.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// See: https://github.com/TedDriggs/darling/issues/293
#![allow(clippy::manual_unwrap_or_default)]

use std::collections::HashMap;

use darling::FromAttributes;
Expand Down
3 changes: 3 additions & 0 deletions scylla-macros/src/serialize/value.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// See: https://github.com/TedDriggs/darling/issues/293
#![allow(clippy::manual_unwrap_or_default)]

use std::collections::HashMap;

use darling::FromAttributes;
Expand Down

0 comments on commit cb332fa

Please sign in to comment.