Skip to content

Commit 347ea2e

Browse files
authored
Merge pull request #18 from berquist/dependabot/cargo/arrayvec-0.7.4
Bump arrayvec from 0.4.12 to 0.7.4
2 parents 630f650 + 2e455e3 commit 347ea2e

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

Cargo.lock

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ approx = "0.5"
1010
factorial = { git = "https://github.com/berquist/factorial", rev = "0500498cdcc4f19d04111e3b3fc085c31a627300" }
1111
num-integer = "0.1"
1212
# num-traits = "*"
13-
arrayvec = "0.4"
13+
arrayvec = "0.7"
1414
GSL = "7.0"
1515
cpython = "0.2"
1616
serde = { version = "1.0", features = [ "derive" ] }

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)