Skip to content

Commit be0f794

Browse files
committed
Fix
1 parent 9666b76 commit be0f794

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rust/lib_gen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub enum Attribute {
4040
impl Attribute {
4141
fn code(&self) -> RustPrinter {
4242
match self {
43-
Attribute::DenyClippy => line(unit() + "#![deny(clippy::all)]"),
43+
Attribute::DenyClippy => line(unit() + "#[deny(clippy::all)]"),
4444
}
4545
}
4646
}
@@ -159,9 +159,9 @@ mod tests {
159159
);
160160

161161
let expected = indoc! { r#"
162-
#![deny(clippy::all)]
162+
#[deny(clippy::all)]
163163
mod abc;
164-
#![deny(clippy::all)]
164+
#[deny(clippy::all)]
165165
mod xyz;
166166
167167
pub use lib::abc::B;

0 commit comments

Comments
 (0)