about summary refs log tree commit diff
path: root/compiler/rustc_span/src/lib.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-12-03 17:06:58 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-12-03 17:08:19 -0500
commit0ad3dce83a4506875e6b1381f5261e458b5c5d98 (patch)
treee8b9b7cb2feed9babe16ca19bdc667e49c861a52 /compiler/rustc_span/src/lib.rs
parentb7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 (diff)
downloadrust-0ad3dce83a4506875e6b1381f5261e458b5c5d98.tar.gz
rust-0ad3dce83a4506875e6b1381f5261e458b5c5d98.zip
Fix some clippy lints
Diffstat (limited to 'compiler/rustc_span/src/lib.rs')
-rw-r--r--compiler/rustc_span/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index 11a49d1ab88..f63a73acbf4 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -1015,10 +1015,7 @@ pub enum ExternalSourceKind {
 
 impl ExternalSource {
     pub fn is_absent(&self) -> bool {
-        match self {
-            ExternalSource::Foreign { kind: ExternalSourceKind::Present(_), .. } => false,
-            _ => true,
-        }
+        !matches!(self, ExternalSource::Foreign { kind: ExternalSourceKind::Present(_), .. })
     }
 
     pub fn get_source(&self) -> Option<&Lrc<String>> {