Skip to content

Commit ecd81e0

Browse files
bors[bot]horazont
andauthored
Merge #387
387: Make serial reconfigure infallible r=burrbull a=horazont It is in fact infallible. Co-authored-by: Jonas Schäfer <j.wielicki@sotecware.net>
2 parents ce1d478 + b56b58e commit ecd81e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/serial.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,11 @@ where
286286
///
287287
/// If a transmission is currently in progress, this returns
288288
/// [`nb::Error::WouldBlock`].
289-
pub fn reconfigure(&mut self, config: impl Into<Config>, clocks: Clocks) -> nb::Result<(), ()> {
289+
pub fn reconfigure(
290+
&mut self,
291+
config: impl Into<Config>,
292+
clocks: Clocks,
293+
) -> nb::Result<(), Infallible> {
290294
let sr = self.usart.sr.read();
291295
// if we're currently busy transmitting, we have to wait until that is
292296
// over -- regarding reception, we assume that the caller -- with

0 commit comments

Comments
 (0)