Skip to content

Commit 8f2666d

Browse files
committed
Fix clippy::ptr_arg
1 parent 8bf4881 commit 8f2666d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bigint/bits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn negate_carry(a: BigDigit, acc: &mut DoubleBigDigit) -> BigDigit {
3636
// + 1 & -ff = ...0 01 & ...f 01 = ...0 01 = + 1
3737
// +ff & - 1 = ...0 ff & ...f ff = ...0 ff = +ff
3838
// answer is pos, has length of a
39-
fn bitand_pos_neg(a: &mut Vec<BigDigit>, b: &[BigDigit]) {
39+
fn bitand_pos_neg(a: &mut [BigDigit], b: &[BigDigit]) {
4040
let mut carry_b = 1;
4141
for (ai, &bi) in a.iter_mut().zip(b.iter()) {
4242
let twos_b = negate_carry(bi, &mut carry_b);
@@ -202,7 +202,7 @@ fn bitor_pos_neg(a: &mut Vec<BigDigit>, b: &[BigDigit]) {
202202
// - 1 | +ff = ...f ff | ...0 ff = ...f ff = - 1
203203
// -ff | + 1 = ...f 01 | ...0 01 = ...f 01 = -ff
204204
// answer is neg, has length of a
205-
fn bitor_neg_pos(a: &mut Vec<BigDigit>, b: &[BigDigit]) {
205+
fn bitor_neg_pos(a: &mut [BigDigit], b: &[BigDigit]) {
206206
let mut carry_a = 1;
207207
let mut carry_or = 1;
208208
for (ai, &bi) in a.iter_mut().zip(b.iter()) {

0 commit comments

Comments
 (0)