Skip to content

Remove legacy std::f32/std::f64 module imports - #68

Merged
HalidOdat merged 1 commit into
boa-dev:mainfrom
devrelu:fix/clippy-legacy-float-consts
Nov 22, 2026
Merged

HalidOdat merged 1 commit into
boa-dev:mainfrom
devrelu:fix/clippy-legacy-float-consts

Conversation

@devrelu

@devrelu devrelu commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Rust 1.100 deprecates the legacy std::f32 / std::f64 module constants, which makes Clippy fail on main under -Dwarnings.

This removes the use std::{f32, f64}; imports in tests/ and benches/ and spells out std::f64::consts::E / std::f32::consts::E. No library code changes; MSRV 1.71 is unaffected.

Split out from #67 as requested.

@HalidOdat HalidOdat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! thanks for the contribution! 😄

@HalidOdat
HalidOdat added this pull request to the merge queue Nov 22, 2026
Merged via the queue into boa-dev:main with commit e541964 Nov 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants