Skip to content

Commit 3bd9c83

Browse files
authored
style: 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 PR #39
2 parents 6438457 + e109c03 commit 3bd9c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<R: io::Read> io::Read for FrameDecoder<R> {
100100
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
101101
macro_rules! fail {
102102
($err:expr) => {
103-
return Err(io::Error::from($err));
103+
return Err(io::Error::from($err))
104104
};
105105
}
106106
loop {

0 commit comments

Comments
 (0)