Skip to content

Compiling kete_core v1.1.0 fails with rustc 1.92.0 #195

@tgoldina

Description

@tgoldina

Rust build fails due to unused_parens lint promoted to error:

Compiling kete_core v1.1.0 (/Users/tatianag/spherex/kete/src/kete_core)
      error: unnecessary parentheses around closure body
        --> src/kete_core/src/propagation/kepler.rs:54:37
         |
      54 |             let f = |ecc_anom: f64| (ecc * ecc_anom.sinh() - ecc_anom - mean_anom);
         |                                     ^                                            ^
         |
      note: the lint level is defined here
        --> src/kete_core/src/lib.rs:21:5
         |
      21 |     unused,
         |     ^^^^^^
         = note: `#[deny(unused_parens)]` implied by `#[deny(unused)]`
      help: remove these parentheses

So kete_core is compiled with #![deny(unused)], and in newer Rust toolchains, unused_parens is considered part of unused and is now triggering a hard error.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions