]> Untitled Git - bdk/commitdiff
Fix incredibly annoying cargo-fmt problem
authorLLFourn <lloyd.fourn@gmail.com>
Tue, 22 Dec 2020 03:37:53 +0000 (14:37 +1100)
committerLLFourn <lloyd.fourn@gmail.com>
Tue, 22 Dec 2020 03:37:53 +0000 (14:37 +1100)
I must have a newer version of cargo-fmt which stops me from making
commits every time because of this.

src/descriptor/policy.rs

index f90b012567fe72e1b173c9019c63252789384e8d..789e69e920fa8544f11e465714b88257ecc0e37c 100644 (file)
@@ -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`]