stricter compiler flags

This commit is contained in:
Brandon Thomas committed 2023-04-29 02:30:41 -07:00
1 parent 630aa497f3
commit 22eeacf355
2 files changed
+17 -15

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
#![allow(dead_code)]
#![allow(non_snake_case)]
// Strict
// Strict AF
//#![forbid(warnings)]
#[macro_use] extern crate serde_derive;
+16 -14
View File
@@ -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;