From c8cd16bd294365c849208c24fb4bd40631790cfc Mon Sep 17 00:00:00 2001 From: Geert-Johan Riemer Date: Wed, 19 Aug 2020 12:27:56 +0200 Subject: [PATCH] Ignore unused argument in closure --- src/static-guarantees/state-machines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static-guarantees/state-machines.md b/src/static-guarantees/state-machines.md index 5a27ffcf..84207911 100644 --- a/src/static-guarantees/state-machines.md +++ b/src/static-guarantees/state-machines.md @@ -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) }); }