mirror of
https://github.com/notohh/rustlings.git
synced 2025-09-04 23:11:47 -04:00
Use match instead of comparison chain
This commit is contained in:
parent
bedf0789f2
commit
423b50b068
2 changed files with 4 additions and 10 deletions
exercises/13_error_handling
|
@ -1,5 +1,3 @@
|
|||
#![allow(clippy::comparison_chain)]
|
||||
|
||||
#[derive(PartialEq, Debug)]
|
||||
enum CreationError {
|
||||
Negative,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue