1
Fork 0

Replace under-used ImplPolarity enum with a boolean

This commit is contained in:
Guillaume Gomez 2021-01-08 22:54:35 +01:00
parent 3338bdb23d
commit 34d128a263
9 changed files with 27 additions and 32 deletions

View file

@ -422,7 +422,7 @@ impl From<clean::Impl> for Impl {
trait_,
for_,
items,
polarity,
negative_polarity,
synthetic,
blanket_impl,
} = impl_;
@ -436,7 +436,7 @@ impl From<clean::Impl> for Impl {
trait_: trait_.map(Into::into),
for_: for_.into(),
items: ids(items),
negative: polarity == Some(clean::ImplPolarity::Negative),
negative: negative_polarity,
synthetic,
blanket_impl: blanket_impl.map(Into::into),
}