Replace under-used ImplPolarity enum with a boolean
This commit is contained in:
parent
3338bdb23d
commit
34d128a263
9 changed files with 27 additions and 32 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue