Skip to content

Commit 0f059f3

Browse files
Use more modern style
Co-authored-by: Eric Huss <[email protected]>
1 parent 663c7a3 commit 0f059f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/handlers/relnotes.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ struct RelnotesState {
2828
}
2929

3030
pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> {
31-
let e = if let Event::Issue(e) = event {
32-
e
33-
} else {
31+
let Event::Issue(e) = event else {
3432
return Ok(());
3533
};
3634

0 commit comments

Comments
 (0)