Skip to content

Commit db8a84b

Browse files
roypatShadowCurse
authored andcommitted
chore: appease clippy
new map_err -> inspect_err lint Signed-off-by: Patrick Roy <[email protected]>
1 parent 503b732 commit db8a84b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm-superio/src/serial.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,8 @@ impl<T: Trigger, EV: SerialEvents, W: Write> Serial<T, EV, W> {
610610
.map_err(Error::IOError)
611611
.and_then(|_| self.out.flush().map_err(Error::IOError))
612612
.map(|_| self.events.out_byte())
613-
.map_err(|err| {
613+
.inspect_err(|_| {
614614
self.events.tx_lost_byte();
615-
err
616615
});
617616
// Because we cannot block the driver, the THRE interrupt is sent
618617
// irrespective of whether we are able to write the byte or not

0 commit comments

Comments
 (0)