]> git.lizzy.rs Git - rust.git/commitdiff
applied rustfmt
authorOle Strohm <strohm99@gmail.com>
Tue, 22 Mar 2022 11:10:48 +0000 (11:10 +0000)
committerOle Strohm <strohm99@gmail.com>
Tue, 22 Mar 2022 11:10:48 +0000 (11:10 +0000)
crates/ide_assists/src/handlers/add_missing_match_arms.rs

index a8bb606c8cacf6d16f0c0f63e1c753c7d465dd2a..0dc67ede36e7a20841c90a734041a5812da65b7e 100644 (file)
@@ -303,7 +303,9 @@ fn lift_enum(e: hir::Enum) -> ExtendedEnum {
 impl ExtendedEnum {
     fn is_non_exhaustive(self, db: &RootDatabase, krate: Crate) -> bool {
         match self {
-            ExtendedEnum::Enum(e) => e.attrs(db).by_key("non_exhaustive").exists() && e.module(db).krate() != krate,
+            ExtendedEnum::Enum(e) => {
+                e.attrs(db).by_key("non_exhaustive").exists() && e.module(db).krate() != krate
+            }
             _ => false,
         }
     }