@@ -65,7 +65,7 @@ impl MatrixImpl<
6565 let col = index / self . rows;
6666 values . append (self . get (row , col ));
6767 index += 1 ;
68- };
68+ }
6969 MatrixTrait :: new (values . span (), self . cols, self . rows)
7070 }
7171
@@ -76,17 +76,17 @@ impl MatrixImpl<
7676 loop {
7777 if index == max_index {
7878 break ;
79- };
79+ }
8080
8181 let row = index / self . cols;
8282 let col = index % self . cols;
8383
8484 if row != exclude_row && col != exclude_col {
8585 values . append (self . get (row , col ));
86- };
86+ }
8787
8888 index += 1 ;
89- };
89+ }
9090
9191 MatrixTrait :: new (values . span (), self . cols - 1 , self . rows - 1 )
9292 }
@@ -115,10 +115,10 @@ impl MatrixImpl<
115115 det += coef * minor . det ();
116116 } else {
117117 det -= coef * minor . det ();
118- };
118+ }
119119
120120 col += 1 ;
121- };
121+ }
122122
123123 return det ;
124124 }
@@ -151,7 +151,7 @@ impl MatrixImpl<
151151 values . append (cofactor / determinant );
152152
153153 index += 1 ;
154- };
154+ }
155155
156156 MatrixTrait :: new (values . span (), self . cols, self . rows)
157157 }
@@ -184,7 +184,7 @@ impl MatrixAdd<
184184 let col = index % lhs . cols;
185185 values . append (lhs . get (row , col ) + rhs . get (row , col ));
186186 index += 1 ;
187- };
187+ }
188188 MatrixTrait :: new (values . span (), lhs . rows, lhs . cols)
189189 }
190190}
@@ -216,7 +216,7 @@ impl MatrixSub<
216216 let col = index % lhs . cols;
217217 values . append (lhs . get (row , col ) - rhs . get (row , col ));
218218 index += 1 ;
219- };
219+ }
220220 MatrixTrait :: new (values . span (), lhs . rows, lhs . cols)
221221 }
222222}
@@ -257,10 +257,10 @@ impl MatrixMul<
257257
258258 sum += lhs . get (row , k ) * rhs . get (k , col );
259259 k += 1 ;
260- };
260+ }
261261 values . append (sum );
262262 index += 1 ;
263- };
263+ }
264264
265265 MatrixTrait :: new (values . span (), lhs . rows, rhs . cols)
266266 }
0 commit comments