Skip to content

Commit

Permalink
fixing lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maebli committed Nov 17, 2023
1 parent 041d3cf commit 9d516ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frames/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Function {
0x18 => Ok(Function::RspUd{acd: false, dfc: true}),
0x28 => Ok(Function::RspUd{acd: true, dfc: false}),
0x38 => Ok(Function::RspUd{acd: true, dfc: true}),
_ => Err(FrameError::InvalidFunction{byte: byte}),
_ => Err(FrameError::InvalidFunction{byte}),
}
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ impl ControlInformation {
0x71 => Ok(ControlInformation::SendAlarmStatus(Direction::SlaveToMaster)),
0x72 | 0x76 => Ok(ControlInformation::ResponseWithVariableDataStructure(Direction::SlaveToMaster)),
0x73 | 0x77 => Ok(ControlInformation::ResponseWithFixedDataStructure(Direction::SlaveToMaster)),
_ => Err(FrameError::InvalidControlInformation{byte: byte}),
_ => Err(FrameError::InvalidControlInformation{byte}),
}
}
}
Expand Down

0 comments on commit 9d516ea

Please sign in to comment.