Skip to content

Commit

Permalink
style: remove trailing semicolon from fail! 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

PR #39
  • Loading branch information
BurntSushi authored Feb 9, 2021
2 parents 6438457 + e109c03 commit 3bd9c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl<R: io::Read> io::Read for FrameDecoder<R> {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
macro_rules! fail {
($err:expr) => {
return Err(io::Error::from($err));
return Err(io::Error::from($err))
};
}
loop {
Expand Down

0 comments on commit 3bd9c83

Please sign in to comment.