Skip to content

Commit

Permalink
Remove trailing semicolon from err! macro
Browse files Browse the repository at this point in the history
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 rust-lang/rust#79813 for more details
  • Loading branch information
Aaron1011 committed Feb 7, 2021
1 parent aaa4bff commit 5f54a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit 5f54a1a

Please sign in to comment.