From e109c035353376a0804bdd647427763835838ad7 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Tue, 9 Feb 2021 14:56:11 -0500 Subject: [PATCH] Remove trailing semicolon from fail! 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 rust-lang/rust#79813 for more details --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index 362c2d7..89dd832 100644 --- a/src/read.rs +++ b/src/read.rs @@ -100,7 +100,7 @@ impl io::Read for FrameDecoder { fn read(&mut self, buf: &mut [u8]) -> io::Result { macro_rules! fail { ($err:expr) => { - return Err(io::Error::from($err)); + return Err(io::Error::from($err)) }; } loop {