Skip to content

Commit 83d5834

Browse files
committed
more lints, increase line lengths
1 parent 44af0b5 commit 83d5834

File tree

4 files changed

+129
-140
lines changed

4 files changed

+129
-140
lines changed

Cargo.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,26 @@ rand_xorshift = "0.4.*"
2121
derive_serdes = ["serde", "smallvec/serde"]
2222

2323
[lints.rust]
24-
unknown-lints = "deny"
24+
ambiguous-negative-literals = "warn"
25+
closure-returning-async-block = "warn"
26+
explicit-outlives-requirements = "warn"
27+
linker-messages = "warn"
28+
meta-variable-misuse = "warn"
29+
redundant-lifetimes = "warn"
30+
trivial-numeric-casts = "warn"
31+
unit-bindings = "warn"
32+
unknown-lints = "warn"
33+
unnameable-types = "warn"
34+
unreachable-pub = "warn"
35+
unused-extern-crates = "warn"
36+
unused-import-braces = "warn"
37+
unused-lifetimes = "warn"
38+
unused-macro-rules = "warn"
39+
unused-qualifications = "warn"
2540

2641
[lints.clippy]
42+
single-component-path-imports = "allow"
43+
# additional lints
2744
allow-attributes = "warn"
2845
assertions-on-result-states = "warn"
2946
bool-to-int-with-if = "warn"

examples/example.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate range_set;
2-
31
use range_set::{range_set, RangeSet};
42
use std::ops::RangeInclusive;
53

examples/readme.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
extern crate range_set;
21
use range_set::{range_set, RangeSet};
32

43
fn main() {

0 commit comments

Comments
 (0)