Skip to content

Commit 2e455e3

Browse files
committed
ArrayVec signature updates
1 parent 1e2fa15 commit 2e455e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/integrals/os86.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ fn apply_os4(x: X4) -> Vec<X4> {
6969
_ => unreachable!(),
7070
};
7171

72-
let mut bra = ArrayVec::<[usize; 2]>::new();
72+
let mut bra = ArrayVec::<usize, 2>::new();
7373
bra.push(0);
7474
bra.push(1);
75-
let mut ket = ArrayVec::<[usize; 2]>::new();
75+
let mut ket = ArrayVec::<usize, 2>::new();
7676
ket.push(2);
7777
ket.push(3);
7878

@@ -274,7 +274,7 @@ fn get_r12_squared(r1: &[f64; 3], r2: &[f64; 3]) -> f64 {
274274

275275
fn find_fun_to_lower(q: &Vec<i8>, n: usize) -> Result<usize, bool> {
276276
// Determine the total angular momentum on each center.
277-
let mut l = ArrayVec::<[i8; 12]>::new();
277+
let mut l = ArrayVec::<i8, 12>::new();
278278
for i in 0..n {
279279
l.push(q[i * 3] + q[i * 3 + 1] + q[i * 3 + 2])
280280
}
@@ -366,7 +366,7 @@ fn apply_os2(mut x: X2, kind: X2kind) -> Vec<X2> {
366366
_ => unreachable!(),
367367
};
368368

369-
let mut pre = ArrayVec::<[u8; 12]>::new();
369+
let mut pre = ArrayVec::<u8, 12>::new();
370370
pre.push(i1);
371371

372372
if kind == X2kind::S {
@@ -415,7 +415,7 @@ fn apply_os2(mut x: X2, kind: X2kind) -> Vec<X2> {
415415
let (a, b) = match fun {
416416
2 => (2, 2),
417417
_ => {
418-
let mut l = ArrayVec::<[usize; 2]>::new();
418+
let mut l = ArrayVec::<usize, 2>::new();
419419
l.push(0);
420420
l.push(1);
421421
// remove_item(&mut l, &fun);

0 commit comments

Comments
 (0)