Skip to content

Commit 6b0eebc

Browse files
committed
Convert unhandled infallible error into Option
1 parent 60d1dec commit 6b0eebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/usb_serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ fn main() -> ! {
9898
_ => {}
9999
}
100100

101-
led.set_low(); // Turn off
101+
led.set_low().ok(); // Turn off
102102
}
103103
}

0 commit comments

Comments
 (0)