Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit f69fe43

Browse files
authored
Merge pull request #188 from deeprobin/improvements
General code improvements
2 parents cb85f85 + 1ddf2b2 commit f69fe43

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ extern crate log;
55
#[cfg(test)]
66
#[macro_use]
77
extern crate proptest;
8-
use serde_json;
98

109
use std::collections::HashSet;
1110
use std::ops::Range;

src/replace.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ enum State {
1414

1515
impl State {
1616
fn is_inserted(&self) -> bool {
17-
if let State::Inserted(..) = *self {
18-
true
19-
} else {
20-
false
21-
}
17+
matches!(*self, State::Inserted(..))
2218
}
2319
}
2420

0 commit comments

Comments
 (0)