Skip to content

Commit

Permalink
Allow unused_braces for ignore nightly doc builds
Browse files Browse the repository at this point in the history
  • Loading branch information
martell committed Apr 25, 2020
1 parent 3f67533 commit 731cc2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diesel_derives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
clippy::items_after_statements,
clippy::used_underscore_binding
)]
// Nightly Regression https://github.com/rust-lang/rust/issues/70814
#![cfg_attr(feature = "nightly", allow(unused_braces))]
#![cfg_attr(feature = "nightly", feature(proc_macro_diagnostic, proc_macro_span))]

extern crate proc_macro;
Expand Down
1 change: 1 addition & 0 deletions diesel_migrations/migrations_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ proc-macro = true

[features]
default = []
nightly = []
2 changes: 2 additions & 0 deletions diesel_migrations/migrations_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
clippy::items_after_statements,
clippy::used_underscore_binding
)]
// Nightly Regression https://github.com/rust-lang/rust/issues/70814
#![cfg_attr(feature = "nightly", allow(unused_braces))]
#![cfg_attr(test, allow(clippy::option_unwrap_used, clippy::result_unwrap_used))]
extern crate migrations_internals;
extern crate proc_macro;
Expand Down

0 comments on commit 731cc2a

Please sign in to comment.