Remove redundant closure

This commit is contained in:
zaubentrucker 2025-02-22 22:50:29 +01:00
parent a181d2b0b1
commit 50e1bce54a

View file

@ -109,7 +109,7 @@ impl Printer {
match reply {
Ok(reply) => Ok(command
.parse_reply(&String::from_utf8(reply).expect("Invalid UTF-8 reply from printer"))
.map_err(|e| PrinterError::GcodeReply(e))?),
.map_err(PrinterError::GcodeReply)?),
Err(RecvTimeoutError::Timeout) => {
Err(PrinterError::NoResponseFromPrinter(command_text))