@@ -69,10 +69,10 @@ fn apply_os4(x: X4) -> Vec<X4> {
69
69
_ => unreachable ! ( ) ,
70
70
} ;
71
71
72
- let mut bra = ArrayVec :: < [ usize ; 2 ] > :: new ( ) ;
72
+ let mut bra = ArrayVec :: < usize , 2 > :: new ( ) ;
73
73
bra. push ( 0 ) ;
74
74
bra. push ( 1 ) ;
75
- let mut ket = ArrayVec :: < [ usize ; 2 ] > :: new ( ) ;
75
+ let mut ket = ArrayVec :: < usize , 2 > :: new ( ) ;
76
76
ket. push ( 2 ) ;
77
77
ket. push ( 3 ) ;
78
78
@@ -274,7 +274,7 @@ fn get_r12_squared(r1: &[f64; 3], r2: &[f64; 3]) -> f64 {
274
274
275
275
fn find_fun_to_lower ( q : & Vec < i8 > , n : usize ) -> Result < usize , bool > {
276
276
// Determine the total angular momentum on each center.
277
- let mut l = ArrayVec :: < [ i8 ; 12 ] > :: new ( ) ;
277
+ let mut l = ArrayVec :: < i8 , 12 > :: new ( ) ;
278
278
for i in 0 ..n {
279
279
l. push ( q[ i * 3 ] + q[ i * 3 + 1 ] + q[ i * 3 + 2 ] )
280
280
}
@@ -366,7 +366,7 @@ fn apply_os2(mut x: X2, kind: X2kind) -> Vec<X2> {
366
366
_ => unreachable ! ( ) ,
367
367
} ;
368
368
369
- let mut pre = ArrayVec :: < [ u8 ; 12 ] > :: new ( ) ;
369
+ let mut pre = ArrayVec :: < u8 , 12 > :: new ( ) ;
370
370
pre. push ( i1) ;
371
371
372
372
if kind == X2kind :: S {
@@ -415,7 +415,7 @@ fn apply_os2(mut x: X2, kind: X2kind) -> Vec<X2> {
415
415
let ( a, b) = match fun {
416
416
2 => ( 2 , 2 ) ,
417
417
_ => {
418
- let mut l = ArrayVec :: < [ usize ; 2 ] > :: new ( ) ;
418
+ let mut l = ArrayVec :: < usize , 2 > :: new ( ) ;
419
419
l. push ( 0 ) ;
420
420
l. push ( 1 ) ;
421
421
// remove_item(&mut l, &fun);
0 commit comments