Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ovstinga committed Jul 12, 2023
1 parent 87bc98e commit c7a66ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ pub fn process_topics_error(topics: Option<&Vec<String>>) -> Option<String> {
}

let topics = topics.unwrap();
return if topics.len() != 2 {
if topics.len() != 2 {
Some(format!(
"expected to have 2 topics, found {} instead",
topics.len()
))
} else {
None
};
}
}

pub fn decode_scr_data_or_panic(data: &str) -> Vec<Vec<u8>> {
Expand Down

0 comments on commit c7a66ab

Please sign in to comment.