mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
stricter compiler flags
This commit is contained in:
1 parent
630aa497f3
commit
22eeacf355
2 files changed
+17
-15
No files matched your search
@@ -12,7 +12,7 @@
|
||||
#![allow(dead_code)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
// Strict
|
||||
// Strict AF
|
||||
//#![forbid(warnings)]
|
||||
|
||||
#[macro_use] extern crate serde_derive;
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
// // Never allow these
|
||||
// #![forbid(private_in_public)]
|
||||
// #![forbid(unused_must_use)] // NB: It's unsafe to not close/check some things
|
||||
//
|
||||
// // Okay to toggle
|
||||
// //#![forbid(warnings)]
|
||||
// //#![forbid(unreachable_patterns)]
|
||||
// #![forbid(unused_imports)]
|
||||
// #![forbid(unused_mut)]
|
||||
// #![forbid(unused_variables)]
|
||||
//
|
||||
// // Always allow
|
||||
// #![allow(dead_code)]
|
||||
// #![allow(non_snake_case)]
|
||||
// Never allow these
|
||||
#![forbid(private_in_public)]
|
||||
#![forbid(unused_must_use)] // NB: It's unsafe to not close/check some things
|
||||
|
||||
// Okay to toggle
|
||||
//#![forbid(unreachable_patterns)]
|
||||
//#![forbid(unused_imports)]
|
||||
//#![forbid(unused_mut)]
|
||||
//#![forbid(unused_variables)]
|
||||
|
||||
// Always allow
|
||||
#![allow(dead_code)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
// Strict AF
|
||||
//#![forbid(warnings)]
|
||||
|
||||
#[macro_use] extern crate serde_derive;
|
||||
|
||||
|
||||
Reference in new issue
Block a user