Skip to content

Commit b3cf30a

Browse files
Minor: Bumpes crates - fixed clippy issues.
1 parent ca8f875 commit b3cf30a

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gcode2obj/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ gcode-nom = "0.6.2"
2121
clap = { workspace = true }
2222
log = { workspace = true }
2323
env_logger = { workspace = true }
24-
hashbrown = "0.15.2"
24+
hashbrown = "0.16.0"

lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ log = { workspace = true }
2424
meatpack = "0.0.3"
2525

2626
[dev-dependencies]
27-
insta = "1.43.1"
27+
insta = "1.43.2"

lib/src/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,24 @@ pub fn compute_arc(current_x: f64, current_y: f64, form: &ArcForm) -> ArcParams
115115
}
116116
}
117117
ArcForm::R(arc_values) => {
118-
let mut r: f64 = f64::NAN;
118+
let mut radius: f64 = f64::NAN;
119119
// R form
120+
120121
for val in arc_values {
121122
match val {
122123
ArcVal::X(val) => x = *val,
123124
ArcVal::Y(val) => y = *val,
124-
ArcVal::R(val) => r = *val,
125+
ArcVal::R(val) => radius = *val,
125126
_ => {
126127
// Ignored params
127128
}
128129
}
129130
}
131+
debug_assert!(x.is_finite());
132+
debug_assert!(y.is_finite());
130133
// r Must be specified from command.
131-
debug_assert!(r.is_finite());
132-
radius = r;
134+
debug_assert!(radius.is_finite());
135+
// radius = r;
133136
// Must solve this par of simultaneous equations
134137
// radius * radius = ( center.0 - current_x ) * ( center.0 - current_x ) + ( center.1 - current_y ) * ( center.1 - current_y )
135138
// radians * radius = (current_x - center.0) * (current_x - center.0) + (current_y - center.1) * (current_y - center.1)

0 commit comments

Comments
 (0)