aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-10-27 20:08:06 -0400
committerBrian Cully <bjc@kublai.com>2022-10-27 20:08:06 -0400
commit0b5803f641d2ab7d42ac498ecccae7d3b3cbc298 (patch)
treeaf95c21f42062b502e5c542c47394aaa790d1b23
parent0df0ba556ef16c43255095ee7be91891bb417ad4 (diff)
downloadluchie-0b5803f641d2ab7d42ac498ecccae7d3b3cbc298.tar.gz
luchie-0b5803f641d2ab7d42ac498ecccae7d3b3cbc298.zip
led: allow unused methods
-rw-r--r--src/led.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/led.rs b/src/led.rs
index 788ec81..ed2524d 100644
--- a/src/led.rs
+++ b/src/led.rs
@@ -14,6 +14,7 @@ pub struct LED {
state: State,
}
+#[allow(unused)]
impl LED {
pub fn new(pin: LEDPin<Input<Floating>>, cr: &mut Cr<CRL, 'B'>) -> Self {
let mut p = pin.into_push_pull_output(cr);