Skip to content

Commit

Permalink
Run cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Oct 27, 2019
1 parent 50b0c49 commit acf139c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
unstable_features = true
indent_style = "Block"
where_single_line = true
#unstable_features = true
#indent_style = "Block"
#where_single_line = true
6 changes: 2 additions & 4 deletions src/timestep_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ impl<N: RealField> TimestepManager<N> {
fluids: &[Fluid<N>],
fluid_fluid_contacts: &[ParticlesContacts<N>],
fluid_boundary_contacts: &[ParticlesContacts<N>],
) -> N
{
) -> N {
let mut max_sq_vel = N::zero();
for v in fluids.iter().flat_map(|f| f.velocities.iter()) {
max_sq_vel = max_sq_vel.max(v.norm_squared());
Expand All @@ -40,8 +39,7 @@ impl<N: RealField> TimestepManager<N> {
fluids: &[Fluid<N>],
fluid_fluid_contacts: &[ParticlesContacts<N>],
fluid_boundary_contacts: &[ParticlesContacts<N>],
) -> N
{
) -> N {
let min_substep = total_step_size * self.min_substep_coeff;
let max_substep = self.max_substep(
particle_radius,
Expand Down

0 comments on commit acf139c

Please sign in to comment.