mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
applied rustfmt
This commit is contained in:
parent
94113b0ac6
commit
b3bd547dda
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue