File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 2
2
name = " aoc"
3
3
version = " 2024.12.25"
4
4
edition = " 2021"
5
- rust-version = " 1.82 "
5
+ rust-version = " 1.83 "
6
6
7
7
[features ]
8
8
frivolity = []
@@ -194,6 +194,7 @@ needless_raw_strings = "warn"
194
194
no_effect_underscore_binding = " warn"
195
195
no_mangle_with_rust_abi = " warn"
196
196
non_ascii_literal = " allow"
197
+ non_zero_suggestions = " warn"
197
198
option_as_ref_cloned = " warn"
198
199
option_option = " warn"
199
200
panic = " allow"
@@ -219,7 +220,7 @@ redundant_else = "warn"
219
220
redundant_type_annotations = " warn"
220
221
ref_as_ptr = " warn"
221
222
ref_binding_to_reference = " warn"
222
- ref_option_ref = " warn"
223
+ ref_option = " warn"
223
224
ref_patterns = " warn"
224
225
renamed_function_params = " warn"
225
226
rest_pat_in_fully_bound_structs = " warn"
@@ -279,6 +280,7 @@ unseparated_literal_suffix = "warn"
279
280
unused_async = " warn"
280
281
unused_result_ok = " warn"
281
282
unused_self = " warn"
283
+ unused_trait_names = " warn"
282
284
unwrap_in_result = " allow"
283
285
unwrap_used = " allow"
284
286
use_debug = " warn"
Original file line number Diff line number Diff line change 6
6
//! resistant but slower hashing algorithm. [`FxHasher`] is much faster (between 2x to 5x from my testing).
7
7
use std:: collections:: { HashMap , HashSet } ;
8
8
use std:: hash:: { BuildHasher , Hash , Hasher } ;
9
- use std:: ops:: BitXor ;
9
+ use std:: ops:: BitXor as _ ;
10
10
11
11
/// Type alias for [`HashSet`] using [`FxHasher`].
12
12
pub type FastSet < T > = HashSet < T , BuildFxHasher > ;
Original file line number Diff line number Diff line change 7
7
//! [`rotate_left`]: slice::rotate_left
8
8
//! [`reverse`]: slice::reverse
9
9
use crate :: util:: parse:: * ;
10
- use std:: fmt:: Write ;
10
+ use std:: fmt:: Write as _ ;
11
11
12
12
pub fn parse ( input : & str ) -> & str {
13
13
input
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ pub fn part2(input: &[i64]) -> i64 {
92
92
#[ cfg( feature = "frivolity" ) ]
93
93
fn draw ( tiles : & [ i64 ] , score : i64 , blocks : i64 ) {
94
94
use crate :: util:: ansi:: * ;
95
- use std:: fmt:: Write ;
95
+ use std:: fmt:: Write as _ ;
96
96
use std:: thread:: sleep;
97
97
use std:: time:: Duration ;
98
98
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use super::intcode::*;
18
18
use crate :: util:: hash:: * ;
19
19
use crate :: util:: parse:: * ;
20
20
use crate :: util:: point:: * ;
21
- use std:: fmt:: Write ;
21
+ use std:: fmt:: Write as _ ;
22
22
use std:: ops:: ControlFlow ;
23
23
24
24
pub struct Input {
Original file line number Diff line number Diff line change 19
19
use super :: intcode:: * ;
20
20
use crate :: util:: hash:: * ;
21
21
use crate :: util:: parse:: * ;
22
- use std:: fmt:: Write ;
22
+ use std:: fmt:: Write as _ ;
23
23
24
24
pub fn parse ( input : & str ) -> Vec < i64 > {
25
25
input. iter_signed ( ) . collect ( )
You can’t perform that action at this time.
0 commit comments