Skip to content

Commit e8e71c4

Browse files
committed
lint
1 parent 1ea8ee1 commit e8e71c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autd3-firmware-emulator/src/fpga/emulator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ impl FPGAEmulator {
339339
match (date.time() - Utc.with_ymd_and_hms(2000, 1, 1, 0, 0, 0).unwrap().time())
340340
.num_nanoseconds()
341341
{
342-
Some(n) if n < 0 => return Err(AUTDFirmwareEmulatorError::InvalidDateTime),
343-
Some(n) => return Ok(n as _),
344-
None => return Err(AUTDFirmwareEmulatorError::InvalidDateTime),
342+
Some(n) if n < 0 => Err(AUTDFirmwareEmulatorError::InvalidDateTime),
343+
Some(n) => Ok(n as _),
344+
None => Err(AUTDFirmwareEmulatorError::InvalidDateTime),
345345
}
346346
}
347-
_ => return Err(AUTDFirmwareEmulatorError::InvalidDateTime),
347+
_ => Err(AUTDFirmwareEmulatorError::InvalidDateTime),
348348
}
349349
}
350350

0 commit comments

Comments
 (0)