Remove redundant closure
This commit is contained in:
parent
a181d2b0b1
commit
50e1bce54a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue