mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +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 {
|
impl ExtendedEnum {
|
||||||
fn is_non_exhaustive(self, db: &RootDatabase, krate: Crate) -> bool {
|
fn is_non_exhaustive(self, db: &RootDatabase, krate: Crate) -> bool {
|
||||||
match self {
|
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,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue