Skip to content

Commit 09c386c

Browse files
jschweemilio
authored andcommitted
Fix clippy: the following explicit lifetimes could be elided
1 parent 06e28c4 commit 09c386c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: src/bindgen/writer.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ impl<'a, F: Write> SourceWriter<'a, F> {
207207
InnerWriter(self).write_fmt(fmt).unwrap();
208208
}
209209

210-
pub fn write_horizontal_source_list<'b, S: Source>(
210+
pub fn write_horizontal_source_list<S: Source>(
211211
&mut self,
212212
items: &[S],
213-
list_type: ListType<'b>,
213+
list_type: ListType<'_>,
214214
) {
215215
for (i, item) in items.iter().enumerate() {
216216
item.write(&self.bindings.config, self);
@@ -228,11 +228,7 @@ impl<'a, F: Write> SourceWriter<'a, F> {
228228
}
229229
}
230230

231-
pub fn write_vertical_source_list<'b, S: Source>(
232-
&mut self,
233-
items: &[S],
234-
list_type: ListType<'b>,
235-
) {
231+
pub fn write_vertical_source_list<S: Source>(&mut self, items: &[S], list_type: ListType<'_>) {
236232
let align_length = self.line_length_for_align();
237233
self.push_set_spaces(align_length);
238234
for (i, item) in items.iter().enumerate() {

0 commit comments

Comments
 (0)