Skip to content

Commit 4a9228f

Browse files
authored
Merge pull request #1688 from Bi0T1N/guards_deadcode
Allow dead code to avoid warning
2 parents 6377c9d + 176da15 commit 4a9228f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flow_control/match/guard.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
A `match` *guard* can be added to filter the arm.
44

55
```rust,editable
6+
#[allow(dead_code)]
67
enum Temperature {
78
Celsius(i32),
89
Fahrenheit(i32),

0 commit comments

Comments
 (0)