Commit cc3788d
committed
Fix the clippy::manual_non_exhaustive warning
```
warning: this seems like a manual implementation of the non-exhaustive pattern
--> src/error.rs:11:1
|
11 | pub enum Error {
| ^-------------
| |
| _help: add the attribute: `#[non_exhaustive] pub enum Error`
| |
12 | | ParseError {
13 | | msg: String,
14 | | line: usize,
... |
45 | | __NonExhaustive,
46 | | }
| |_^
|
= note: `#[warn(clippy::manual_non_exhaustive)]` on by default
help: remove this variant
--> src/error.rs:45:5
|
45 | __NonExhaustive,
| ^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
warning: 1 warning emitted
```
Signed-off-by: Nathaniel McCallum <[email protected]>1 parent 522605e commit cc3788d
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
119 | | - | |
120 | 116 | | |
121 | 117 | | |
122 | 118 | | |
| |||
0 commit comments