Skip to content

Commit

Permalink
Restore "dev" feature to allow warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Geobert Quach committed Jan 23, 2018
1 parent 8003c11 commit cbf6304
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/bin/cobalt/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// 1. Run `rustc -W help`
// 2. Grab all `default=warn` warnings
// 3. Paste them here, deleting `warnings`, and any with `deprecated` in the name
#![deny(const_err,
#![cfg_attr(not(feature="dev"), deny(const_err,
dead_code,
illegal_floating_point_literal_pattern,
improper_ctypes,
Expand Down Expand Up @@ -39,7 +39,7 @@
unused_parens,
unused_unsafe,
unused_variables,
while_true)]
while_true))]
// This list is select `allow` warnings
#![deny(trivial_casts,
trivial_numeric_casts,
Expand All @@ -48,7 +48,6 @@
#![cfg_attr(feature="cargo-clippy", allow(
cyclomatic_complexity,
needless_pass_by_value))]
#![cfg_attr(feature="dev", warn(warnings))]

extern crate cobalt;
extern crate env_logger;
Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// 1. Run `rustc -W help`
// 2. Grab all `default=warn` warnings
// 3. Paste them here, deleting `warnings`, and any with `deprecated` in the name
#![deny(const_err,
#![cfg_attr(not(feature="dev"), deny(const_err,
dead_code,
illegal_floating_point_literal_pattern,
improper_ctypes,
Expand Down Expand Up @@ -39,7 +39,7 @@
unused_parens,
unused_unsafe,
unused_variables,
while_true)]
while_true))]
// This list is select `allow` warnings
#![deny(trivial_casts,
trivial_numeric_casts,
Expand All @@ -48,7 +48,6 @@
#![cfg_attr(feature="cargo-clippy", allow(
cyclomatic_complexity,
needless_pass_by_value))]
#![cfg_attr(feature="dev", warn(warnings))]

extern crate chrono;
extern crate ignore;
Expand Down

0 comments on commit cbf6304

Please sign in to comment.