Fix incredibly annoying cargo-fmt problem

I must have a newer version of cargo-fmt which stops me from making
commits every time because of this.
This commit is contained in:
LLFourn 2020-12-22 14:37:53 +11:00
parent 63aabe203f
commit a578d20282
No known key found for this signature in database
GPG Key ID: A27093B54DA11F65

View File

@ -165,11 +165,13 @@ pub enum SatisfiableItem {
impl SatisfiableItem { impl SatisfiableItem {
/// Returns whether the [`SatisfiableItem`] is a leaf item /// Returns whether the [`SatisfiableItem`] is a leaf item
pub fn is_leaf(&self) -> bool { pub fn is_leaf(&self) -> bool {
!matches!(self, !matches!(
SatisfiableItem::Thresh { self,
items: _, SatisfiableItem::Thresh {
threshold: _, items: _,
}) threshold: _,
}
)
} }
/// Returns a unique id for the [`SatisfiableItem`] /// Returns a unique id for the [`SatisfiableItem`]