Skip to content

Commit 0cd2ca1

Browse files
Merge #261
261: Ignore unused argument in closure r=eldruin a=GeertJohan I'm fairly new to Rust so perhaps I'm overlooking something. But I think this argument should be ignored like the other `_r`'s, right? Co-authored-by: Geert-Johan Riemer <geertjohan@geertjohan.net>
2 parents 63508ce + c8cd16b commit 0cd2ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/static-guarantees/state-machines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl GpioConfig {
6868
}
6969
7070
pub fn set_direction(&mut self, is_output: bool) {
71-
self.periph.modify(|r, w| {
71+
self.periph.modify(|_r, w| {
7272
w.direction().set_bit(is_output)
7373
});
7474
}

0 commit comments

Comments
 (0)