refactor: clippy suggestions

This commit is contained in:
Greg Heartsfield
2021-12-11 21:56:52 -06:00
parent ca0f01c94b
commit e732f918f9
7 changed files with 37 additions and 42 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ impl From<CloseCmd> for Result<Close> {
fn from(cc: CloseCmd) -> Result<Close> {
// ensure command is correct
if cc.cmd != "CLOSE" {
return Err(Error::CommandUnknownError);
Err(Error::CommandUnknownError)
} else {
return Ok(Close { id: cc.id });
Ok(Close { id: cc.id })
}
}
}