From a578d20282f7b1545020770207f1b0d84e59473f Mon Sep 17 00:00:00 2001 From: LLFourn Date: Tue, 22 Dec 2020 14:37:53 +1100 Subject: [PATCH] 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. --- src/descriptor/policy.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/descriptor/policy.rs b/src/descriptor/policy.rs index f90b0125..789e69e9 100644 --- a/src/descriptor/policy.rs +++ b/src/descriptor/policy.rs @@ -165,11 +165,13 @@ pub enum SatisfiableItem { impl SatisfiableItem { /// Returns whether the [`SatisfiableItem`] is a leaf item pub fn is_leaf(&self) -> bool { - !matches!(self, - SatisfiableItem::Thresh { - items: _, - threshold: _, - }) + !matches!( + self, + SatisfiableItem::Thresh { + items: _, + threshold: _, + } + ) } /// Returns a unique id for the [`SatisfiableItem`]