Skip to content

Commit

Permalink
even more newest clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
prehner committed Oct 15, 2023
1 parent 715d154 commit 7038dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feos-dft/src/profile/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ where

/// Return the partial derivatives of the density profiles w.r.t. the chemical potentials $\left(\frac{\partial\rho_i(\mathbf{r})}{\partial\mu_k}\right)_T$
pub fn drho_dmu(&self) -> EosResult<DrhoDmu<D>> {
let shape = self.density.shape().clone();
let shape = self.density.shape();
let shape: Vec<_> = std::iter::once(&shape[0]).chain(shape).copied().collect();
let mut drho_dmu = Array::zeros(shape).into_dimensionality().unwrap();
for (k, mut d) in drho_dmu.outer_iter_mut().enumerate() {
Expand Down

0 comments on commit 7038dbe

Please sign in to comment.