Skip to content

Commit

Permalink
Merge #261
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bors[bot] and GeertJohan authored Aug 19, 2020
2 parents 63508ce + c8cd16b commit 0cd2ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static-guarantees/state-machines.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl GpioConfig {
}
pub fn set_direction(&mut self, is_output: bool) {
self.periph.modify(|r, w| {
self.periph.modify(|_r, w| {
w.direction().set_bit(is_output)
});
}
Expand Down

0 comments on commit 0cd2ca1

Please sign in to comment.