Skip to content

Commit

Permalink
Merge pull request #1688 from Bi0T1N/guards_deadcode
Browse files Browse the repository at this point in the history
Allow dead code to avoid warning
  • Loading branch information
marioidival authored Mar 31, 2023
2 parents 6377c9d + 176da15 commit 4a9228f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flow_control/match/guard.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
A `match` *guard* can be added to filter the arm.

```rust,editable
#[allow(dead_code)]
enum Temperature {
Celsius(i32),
Fahrenheit(i32),
Expand Down

0 comments on commit 4a9228f

Please sign in to comment.