summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-10-25 17:26:24 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-10-25 17:34:03 +0200
commit6257a2e0197190f5f2951693256d05d32437bd55 (patch)
tree004dce1dc974225bfaa456e0021ca5b6a7a75ed2
parentee04aca39a234c5a54a4c1f514a3664329af0590 (diff)
openpgp: Fix trailing semicolon in macro warning.
- The new 1.56.0 compiler has started issuing a new warning: "trailing semicolon in macro used in expression position", which will be an error in a future release. - For more information, see https://github.com/rust-lang/rust/issues/79813
-rw-r--r--openpgp/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs
index c83beab7..5f303583 100644
--- a/openpgp/src/lib.rs
+++ b/openpgp/src/lib.rs
@@ -115,10 +115,10 @@ macro_rules! assert_match {
}
}};
( $error: pat = $expr: expr, $fmt:expr ) => {
- assert_match!($error = $expr, $fmt, );
+ assert_match!($error = $expr, $fmt, )
};
( $error: pat = $expr: expr ) => {
- assert_match!($error = $expr, "");
+ assert_match!($error = $expr, "")
};
}