Skip to content

Commit 62272cb

Browse files
boondocklabsusbalbin
authored andcommitted
Fix ATanH using wrong func in CORDIC
Rust 1.89.0 detects that `ATanH` is never constructed. func::ATan was being used rather than func::ATanH error: struct `ATanH` is never constructed --> src/cordic.rs:466:16 | 466 | pub struct ATanH; | ^^^^^ | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]` error: could not compile `stm32g4xx-hal` (lib) due to 1 previous error
1 parent d179208 commit 62272cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cordic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ pub mod op {
850850
(CosH<N1>, One, One, CosH),
851851
(SinH<N1>, One, One, SinH),
852852
(SinHCosH<N1>, One, Two, SinH),
853-
(ATanH<N1>, One, One, ATan),
853+
(ATanH<N1>, One, One, ATanH),
854854
}
855855

856856
impls_multi_scale! {

0 commit comments

Comments
 (0)