Skip to content

Commit 82419b0

Browse files
codegen: Remove trailing semicolon in macro used as an expression
See: rust-lang/rust#79813 rust-lang/lang-team#70
1 parent a097a1f commit 82419b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/codegen/src/rust.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ struct RustGenerator<'a> {
8080
}
8181

8282
macro_rules! gen {
83-
($this:expr, $($arg:tt)+) => { write!($this.output.module_content, $($arg)+).unwrap(); };
83+
($this:expr, $($arg:tt)+) => { write!($this.output.module_content, $($arg)+).unwrap() };
8484
}
8585

8686
macro_rules! genln {
87-
($this:expr) => { writeln!($this.output.module_content).unwrap(); };
88-
($this:expr, $($arg:tt)+) => { writeln!($this.output.module_content, $($arg)+).unwrap(); };
87+
($this:expr) => { writeln!($this.output.module_content).unwrap() };
88+
($this:expr, $($arg:tt)+) => { writeln!($this.output.module_content, $($arg)+).unwrap() };
8989
}
9090

9191
#[rustfmt::skip::macros(gen, genln)]

0 commit comments

Comments
 (0)