Skip to content

Commit d066d29

Browse files
committed
Minor lints
1 parent 3f1a9e7 commit d066d29

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ private_intra_doc_links = "allow"
1313
[lints.rust]
1414
absolute_paths_not_starting_with_crate = "warn"
1515
box_pointers = "warn"
16+
dead_code = "warn"
1617
elided_lifetimes_in_paths = "warn"
1718
explicit_outlives_requirements = "warn"
1819
ffi_unwind_calls = "warn"
@@ -37,7 +38,6 @@ unused_import_braces = "warn"
3738
unused_lifetimes = "warn"
3839
unused_macro_rules = "warn"
3940
unused_qualifications = "warn"
40-
unused_tuple_struct_fields = "warn"
4141
variant_size_differences = "warn"
4242

4343
[lints.clippy]

src/util/integer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Combines common [operators](https://doc.rust-lang.org/book/appendix-02-operators.html)
22
//! and constants `0`, `1` and `10` to enable generic methods on integer types.
3-
use std::cmp::{PartialEq, PartialOrd};
43
use std::ops::{Add, BitAnd, BitOr, Div, Mul, Neg, Rem, Shl, Shr, Sub};
54

65
pub trait Integer<T>:

src/year2019/day25.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn explore(
170170

171171
for line in output.lines() {
172172
if line.starts_with("== Pressure-Sensitive Floor ==") {
173-
*path = stack.clone();
173+
path.clone_from(stack);
174174
return;
175175
} else if let Some(suffix) = line.strip_prefix("- ") {
176176
if opposite(suffix) == "none" {

0 commit comments

Comments
 (0)