Skip to content

Commit

Permalink
Run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
skailasa committed Jan 4, 2024
1 parent 15ad288 commit 95d40d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fmm/src/fmm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ where
let i = fmm.tree.key_to_index.get(leaf).unwrap();
unsafe {
let raw = multipoles.as_ptr().add(i * ncoeffs) as *mut V;
leaf_multipoles.push(SendPtrMut { raw: raw.clone() });
leaf_multipoles.push(SendPtrMut { raw });

let raw = locals.as_ptr().add(i * ncoeffs) as *mut V;
leaf_locals.push(SendPtrMut { raw: raw.clone() });
leaf_locals.push(SendPtrMut { raw });
}
}

Expand Down Expand Up @@ -502,10 +502,10 @@ where
let i = fmm.tree.key_to_index.get(leaf).unwrap();
unsafe {
let raw = multipoles.as_ptr().add(i * ncoeffs) as *mut V;
leaf_multipoles.push(SendPtrMut { raw: raw.clone() });
leaf_multipoles.push(SendPtrMut { raw });

let raw = locals.as_ptr().add(i * ncoeffs) as *mut V;
leaf_locals.push(SendPtrMut { raw: raw.clone() });
leaf_locals.push(SendPtrMut { raw });
}
}

Expand Down

0 comments on commit 95d40d0

Please sign in to comment.