Skip to content

Commit c74504b

Browse files
committed
chore: fix clippy complaints
1 parent 4d8dad7 commit c74504b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

bindgen/callbacks.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,12 @@ pub trait ParseCallbacks: fmt::Debug {
135135
///
136136
/// If no additional attributes are wanted, this function should return an
137137
/// empty `Vec`.
138-
fn process_attributes(&self, _info: &AttributeInfo<'_>, _attributes: &mut HashSet<String>) {}
138+
fn process_attributes(
139+
&self,
140+
_info: &AttributeInfo<'_>,
141+
_attributes: &mut HashSet<String>,
142+
) {
143+
}
139144

140145
/// Process a source code comment.
141146
fn process_comment(&self, _comment: &str) -> Option<String> {

bindgen/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,10 @@ impl BindgenOptions {
580580
self.parse_callbacks.iter().for_each(|cb| f(cb.as_ref()));
581581
}
582582

583-
fn for_each_callback_mut(&self, mut f: impl FnMut(&dyn callbacks::ParseCallbacks)) {
583+
fn for_each_callback_mut(
584+
&self,
585+
mut f: impl FnMut(&dyn callbacks::ParseCallbacks),
586+
) {
584587
self.parse_callbacks.iter().for_each(|cb| f(cb.as_ref()));
585588
}
586589

0 commit comments

Comments
 (0)