applied rustfmt
This commit is contained in:
parent
94113b0ac6
commit
b3bd547dda
@ -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…
x
Reference in New Issue
Block a user