Skip to content

Commit

Permalink
Fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Oct 29, 2024
1 parent c5f6123 commit a65ac6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions starknet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ const SIG_LENGTH: u8 = 0x41;
fn send_data(comm: &mut io::Comm, data: Result<Option<Vec<u8>>, Reply>) {
match data {
Ok(data) => {
match data {
Some(data) => comm.append(data.as_slice()),
None => (),
if let Some(data) = data {
comm.append(data.as_slice())
}
comm.reply_ok();
}
Expand Down

0 comments on commit a65ac6f

Please sign in to comment.