mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 09:01:01 +00:00
Enable pedantic clippy lints in serde_derive
This commit is contained in:
@@ -777,9 +777,7 @@ impl Field {
|
||||
};
|
||||
|
||||
let variant_borrow = attrs
|
||||
.map(|variant| &variant.borrow)
|
||||
.unwrap_or(&None)
|
||||
.as_ref()
|
||||
.map_or(None, |variant| variant.borrow.as_ref())
|
||||
.map(|borrow| vec![Meta(borrow.clone())]);
|
||||
|
||||
for meta_items in field
|
||||
|
||||
Reference in New Issue
Block a user