Skip to content

Commit 7425bda

Browse files
committed
Experiment
1 parent b1f5f0f commit 7425bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust/lib_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn lib_gen(self_name: &str, modules: &[ModuleDef]) -> String {
108108
.reduce(|acc, e| acc + e)
109109
.unwrap_or_else(unit);
110110

111-
let code = line(unit() + "#![allow(clippy::all)]") + NewLine + mods + NewLine + uses;
111+
let code = line(unit() + "#[allow(clippy::all)]") + NewLine + mods + NewLine + uses;
112112

113113
RustContext::new().print_to_string(code)
114114
}
@@ -136,7 +136,7 @@ mod tests {
136136
);
137137

138138
let expected = indoc! { r#"
139-
#![allow(clippy::all)]
139+
#[allow(clippy::all)]
140140
141141
mod abc;
142142
mod xyz;

0 commit comments

Comments
 (0)