Skip to content

Commit 17ed914

Browse files
authored
chore(clippy): fix new clippy findings
Refs: #543
1 parent 34caede commit 17ed914

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

crates/macros/src/class.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ struct PropAttributes {
7474
}
7575

7676
fn parse_fields<'a>(fields: impl Iterator<Item = &'a mut syn::Field>) -> Result<Vec<Property<'a>>> {
77-
#[derive(Debug, Default, FromMeta)]
78-
#[darling(default)]
79-
struct FieldAttr {
80-
rename: Option<String>,
81-
}
82-
8377
let mut result = vec![];
8478
for field in fields {
8579
let attr = PropAttributes::from_attributes(&field.attrs)?;

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builders/class.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ mod tests {
380380
use super::*;
381381

382382
#[test]
383+
#[allow(unpredictable_function_pointer_comparisons)]
383384
fn test_new() {
384385
let class = ClassBuilder::new("Foo");
385386
assert_eq!(class.name, "Foo");

0 commit comments

Comments
 (0)