Skip to content

Commit

Permalink
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
  • Loading branch information
Aaron1011 committed Feb 9, 2021
1 parent 6438457 commit e109c03
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 e109c03

Please sign in to comment.