Match order of struct fields

Use the same order where the struct fields are defined and where they
are initialized.
This commit is contained in:
Hanno Braun 2024-08-12 21:35:31 +02:00
parent c157b66f5e
commit 710ee5ead0

View File

@ -43,9 +43,9 @@ impl Default for ValidationConfig {
fn default() -> Self {
Self {
panic_on_error: false,
distinct_min_distance: Scalar::from_f64(5e-7), // 0.5 µm,
tolerance: Tolerance::from_scalar(0.001)
.expect("Tolerance provided is larger than zero"),
distinct_min_distance: Scalar::from_f64(5e-7), // 0.5 µm,
// This value was chosen pretty arbitrarily. Seems small enough to
// catch errors. If it turns out it's too small (because it produces