Skip to content

Commit

Permalink
clippy was then unhappy about integrate_for() - make clippy happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Apr 20, 2024
1 parent 50e58c4 commit ec862d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/webxdc/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,11 @@ impl Message {
// This is the chat given to `init_webxdc_integration()`.
fn webxdc_integrated_for(&self) -> Option<ChatId> {
let raw_id = self.param.get_int(Param::WebxdcIntegrateFor).unwrap_or(0) as u32;
let chat_id = if raw_id > 0 {
if raw_id > 0 {
Some(ChatId::new(raw_id))
} else {
None
};
chat_id
}
}
}

Expand Down

0 comments on commit ec862d3

Please sign in to comment.