Skip to content

Commit

Permalink
(fix) lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Aug 16, 2020
1 parent d62b1e0 commit 8682692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,7 +14,7 @@ matrix:
- cargo clippy -- -D warnings
- rust: beta
- rust: stable
- rust: 1.32.0
- rust: 1.42.0
script:
- cargo build
- rust: nightly
Expand Down
5 changes: 1 addition & 4 deletions src/json/value.rs
Expand Up @@ -34,10 +34,7 @@ impl<'reg: 'rc, 'rc> ScopedJson<'reg, 'rc> {
}

pub fn is_missing(&self) -> bool {
match self {
ScopedJson::Missing => true,
_ => false,
}
matches!(self, ScopedJson::Missing)
}

pub fn into_derived(self) -> ScopedJson<'reg, 'rc> {
Expand Down

0 comments on commit 8682692

Please sign in to comment.