File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 22name = " aoc"
33version = " 2023.12.25"
44edition = " 2021"
5- rust-version = " 1.79 "
5+ rust-version = " 1.80 "
66
77[features ]
88frivolity = []
@@ -213,6 +213,7 @@ ref_as_ptr = "warn"
213213ref_binding_to_reference = " warn"
214214ref_option_ref = " warn"
215215ref_patterns = " warn"
216+ renamed_function_params = " warn"
216217rest_pat_in_fully_bound_structs = " warn"
217218return_self_not_must_use = " warn"
218219same_functions_in_if_condition = " warn"
@@ -275,6 +276,7 @@ use_debug = "warn"
275276used_underscore_binding = " warn"
276277verbose_bit_mask = " warn"
277278verbose_file_reads = " warn"
279+ while_float = " warn"
278280wildcard_dependencies = " warn"
279281wildcard_enum_match_arm = " allow"
280282wildcard_imports = " allow"
Original file line number Diff line number Diff line change @@ -73,14 +73,14 @@ impl<T> Index<Point> for Grid<T> {
7373 type Output = T ;
7474
7575 #[ inline]
76- fn index ( & self , point : Point ) -> & Self :: Output {
77- & self . bytes [ ( self . width * point . y + point . x ) as usize ]
76+ fn index ( & self , index : Point ) -> & Self :: Output {
77+ & self . bytes [ ( self . width * index . y + index . x ) as usize ]
7878 }
7979}
8080
8181impl < T > IndexMut < Point > for Grid < T > {
8282 #[ inline]
83- fn index_mut ( & mut self , point : Point ) -> & mut Self :: Output {
84- & mut self . bytes [ ( self . width * point . y + point . x ) as usize ]
83+ fn index_mut ( & mut self , index : Point ) -> & mut Self :: Output {
84+ & mut self . bytes [ ( self . width * index . y + index . x ) as usize ]
8585 }
8686}
Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ impl From<u8> for Point {
100100
101101impl Hash for Point {
102102 #[ inline]
103- fn hash < H : Hasher > ( & self , hasher : & mut H ) {
104- hasher . write_u32 ( self . x as u32 ) ;
105- hasher . write_u32 ( self . y as u32 ) ;
103+ fn hash < H : Hasher > ( & self , state : & mut H ) {
104+ state . write_u32 ( self . x as u32 ) ;
105+ state . write_u32 ( self . y as u32 ) ;
106106 }
107107}
108108
You can’t perform that action at this time.
0 commit comments