Skip to content

Commit 4bf8586

Browse files
committed
feat: Simplify warning management
Benefits - Doesn't slow people down during prototyping - Contributors see all warnings they will be accountable for - Warning changes don't break the CI - Only run on one target Fixes #1
1 parent 0b53dfd commit 4bf8586

File tree

2 files changed

+9
-36
lines changed

2 files changed

+9
-36
lines changed

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ rust:
66
- beta
77
- nightly
88

9+
matrix:
10+
include:
11+
- rust: 1.24.0 # `stable`: Locking down for consistent behavior
12+
env: RUSTFLAGS=-D warnings
13+
install:
14+
script:
15+
- cargo check --tests
16+
917
install:
1018
- rustc -Vv
1119
- cargo -V

src/lib.rs

+1-36
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,4 @@
1-
#![deny(const_err,
2-
dead_code,
3-
illegal_floating_point_literal_pattern,
4-
improper_ctypes,
5-
non_camel_case_types,
6-
non_shorthand_field_patterns,
7-
non_snake_case,
8-
non_upper_case_globals,
9-
no_mangle_generic_items,
10-
overflowing_literals,
11-
path_statements,
12-
patterns_in_fns_without_body,
13-
plugin_as_library,
14-
private_in_public,
15-
private_no_mangle_fns,
16-
private_no_mangle_statics,
17-
renamed_and_removed_lints,
18-
stable_features,
19-
unconditional_recursion,
20-
unions_with_drop_fields,
21-
unknown_lints,
22-
unreachable_code,
23-
unreachable_patterns,
24-
unused_allocation,
25-
unused_assignments,
26-
unused_attributes,
27-
unused_comparisons,
28-
unused_features,
29-
unused_imports,
30-
unused_macros,
31-
unused_must_use,
32-
unused_mut,
33-
unused_parens,
34-
unused_unsafe,
35-
unused_variables,
36-
while_true)]
1+
#![warn(warnings)]
372

383
#[cfg(test)]
394
mod tests {

0 commit comments

Comments
 (0)