Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(lib): replace manual clamp with f32::clamp #16

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

ShenMian
Copy link
Contributor

@ShenMian ShenMian commented Jan 16, 2025

This should fix the latest CI failure.

  • Simplify the code by using the built-in f32::clamp method
  • Improve readability and maintainability

- Simplify the code by using the built-in f32::clamp method
- Improve readability and maintainability
@aMarcireau
Copy link
Member

Looks good, thanks for the PR! I think that I originally avoided it since clamp requires Rust ≥ 1.50, but we are already using edition 2021 which was released with 1.56 anyway so this does not restrict compatibility.

@aMarcireau aMarcireau merged commit 9e9931e into neuromorphicsystems:master Jan 17, 2025
@ShenMian ShenMian deleted the fix/clippy branch January 17, 2025 08:14
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