From 5f54a1accfd16167467defe83cc4b879e0bbe528 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sun, 7 Feb 2021 17:06:04 -0500 Subject: [PATCH] Remove trailing semicolon from err! macro If the `semicolon_in_expressions_from_macros` lint is ever turned into a hard error, your crate will stop compiling. This commit ensures that your crate will compile on both current and future versions of Rust. See https://github.com/rust-lang/rust/issues/79813 for more details --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2e7d4bd..118643a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ macro_rules! err { ($text:expr, $kind:expr) => { - return Err(Error::new($kind, $text)); + return Err(Error::new($kind, $text)) }; ($text:expr) => {