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:
@@ -297,12 +297,12 @@ impl Mri2FeModel {
|
||||
RegionMaterial::MreDerived { base_material, .. } => {
|
||||
// Use base material for export (MRE values are for analysis)
|
||||
if let RegionMaterial::Elastic {
|
||||
young_modulus,
|
||||
poisson_ratio,
|
||||
density,
|
||||
} = base_material.as_ref() {
|
||||
let elastic =
|
||||
LinearElastic::new(*young_modulus, *poisson_ratio, *density);
|
||||
young_modulus,
|
||||
poisson_ratio,
|
||||
density,
|
||||
} = base_material.as_ref()
|
||||
{
|
||||
let elastic = LinearElastic::new(*young_modulus, *poisson_ratio, *density);
|
||||
builder.add_material(Material::Elastic(elastic))
|
||||
} else {
|
||||
let elastic = LinearElastic::new(1e6, 0.45, 1000.0);
|
||||
|
||||
Reference in New Issue
Block a user