]> Untitled Git - bdk/commitdiff
Remove unneeded unit expression
authorTobin Harding <me@tobin.cc>
Tue, 11 May 2021 00:50:34 +0000 (10:50 +1000)
committerTobin Harding <me@tobin.cc>
Tue, 11 May 2021 00:52:08 +0000 (10:52 +1000)
Clippy emits:

  warning: unneeded unit expression

As suggested, remove the unneeded unit expression.

src/descriptor/dsl.rs

index 16d8977d1b7eda211cddda2bada5617c0f7bbcc2..e5bd1de6f1ac8cc3fb0aca0fc710bccd102eb2c4 100644 (file)
@@ -535,9 +535,7 @@ macro_rules! fragment_internal {
     ( @t , $( $tail:tt )* ) => ({
         $crate::fragment_internal!( @t $( $tail )* )
     });
-    ( @t ) => ({
-        ()
-    });
+    ( @t ) => ({});
 
     // Fallback to calling `fragment!()`
     ( $( $tokens:tt )* ) => ({