forked from 1b-agent/opencadstudio-upstream
style: rustfmt the tree so the CI lint check passes
This commit is contained in:
1 parent
1317a7b4fd
commit
6025d8be44
128 files changed
+4097
-1676
No files matched your search
@@ -108,10 +108,15 @@ impl OpenCADStudio {
|
||||
self.polar_mode = state.polar_on;
|
||||
self.ortho_mode = state.ortho_on;
|
||||
self.polar_increment_deg = state.polar_increment_deg;
|
||||
let aperture = state.osnap_aperture_input.trim().parse::<f32>().ok()
|
||||
let aperture = state
|
||||
.osnap_aperture_input
|
||||
.trim()
|
||||
.parse::<f32>()
|
||||
.ok()
|
||||
.filter(|v| v.is_finite() && (4.0..=40.0).contains(v));
|
||||
let Some(aperture) = aperture else {
|
||||
self.command_line.push_error("OSNAP capture radius must be between 4 and 40 pixels.");
|
||||
self.command_line
|
||||
.push_error("OSNAP capture radius must be between 4 and 40 pixels.");
|
||||
return false;
|
||||
};
|
||||
self.snapper.osnap_radius_px = aperture;
|
||||
|
||||
Reference in new issue
Block a user