Skip to content

Commit b8e913a

Browse files
committed
Allow unused_braces for ignore nightly doc builds
Regression rust-lang/rust#70814
1 parent 3f67533 commit b8e913a

File tree

2 files changed

+4
-0
lines changed
  • diesel_derives/src
  • diesel_migrations/migrations_macros/src

2 files changed

+4
-0
lines changed

diesel_derives/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
clippy::items_after_statements,
1919
clippy::used_underscore_binding
2020
)]
21+
// Nightly Regression https://github.com/rust-lang/rust/issues/70814
22+
#![cfg_attr(feature = "nightly", allow(unused_braces))]
2123
#![cfg_attr(feature = "nightly", feature(proc_macro_diagnostic, proc_macro_span))]
2224

2325
extern crate proc_macro;

diesel_migrations/migrations_macros/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
clippy::items_after_statements,
2121
clippy::used_underscore_binding
2222
)]
23+
// Nightly Regression https://github.com/rust-lang/rust/issues/70814
24+
#![cfg_attr(feature = "nightly", allow(unused_braces))]
2325
#![cfg_attr(test, allow(clippy::option_unwrap_used, clippy::result_unwrap_used))]
2426
extern crate migrations_internals;
2527
extern crate proc_macro;

0 commit comments

Comments
 (0)