Skip to content

Commit 3a16f38

Browse files
committed
clippy: fix autoderef clippy lints
1 parent 0ef7c8e commit 3a16f38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/web/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn add_load_more_button() {
6060
);
6161
btn.add_event_listener_with_callback(
6262
"click",
63-
&on_click
63+
on_click
6464
.as_ref()
6565
.dyn_ref()
6666
.expect_throw("on click is not a Function"),

graphql_query_derive/src/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub fn extract_normalization(ast: &syn::DeriveInput) -> Result<Normalization, sy
9797
}
9898

9999
pub fn extract_fragments_other_variant(ast: &syn::DeriveInput) -> bool {
100-
extract_attr(&ast, "fragments_other_variant")
100+
extract_attr(ast, "fragments_other_variant")
101101
.ok()
102102
.and_then(|s| FromStr::from_str(s.as_str()).ok())
103103
.unwrap_or(false)

0 commit comments

Comments
 (0)