style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -550,9 +550,8 @@ impl MeshRefinement {
|
||||
let key = if ni < nj { (ni, nj) } else { (nj, ni) };
|
||||
|
||||
*edge_midpoints.entry(key).or_insert_with(|| {
|
||||
let mid_coords = (&mesh.nodes[&ni].coordinates
|
||||
+ &mesh.nodes[&nj].coordinates)
|
||||
* 0.5;
|
||||
let mid_coords =
|
||||
(&mesh.nodes[&ni].coordinates + &mesh.nodes[&nj].coordinates) * 0.5;
|
||||
let mid_node = Node {
|
||||
coordinates: mid_coords,
|
||||
dofs: mesh.nodes[&ni].dofs.clone(),
|
||||
|
||||
Reference in New Issue
Block a user