Skip to content

refactor: resolve clippy warnings and update Rust edition to 2021#11

Merged
inureyes merged 1 commit into
mainfrom
refactor/rust-edition-to-2021
Aug 24, 2025
Merged

refactor: resolve clippy warnings and update Rust edition to 2021#11
inureyes merged 1 commit into
mainfrom
refactor/rust-edition-to-2021

Conversation

@inureyes
Copy link
Copy Markdown
Member

Summary

This PR resolves all clippy warnings and errors across the codebase while updating the Rust edition from 2024 to 2021 for broader compatibility.

Changes

  • Updated Rust edition from 2024 to 2021 in Cargo.toml
  • Fixed all clippy warnings related to if-let chains and pattern matching
  • Improved error message formatting to use Display trait instead of Debug
  • Simplified conditional logic and removed unnecessary pattern matches
  • Fixed unused variable warnings and unreachable code
  • Standardized import ordering and formatting
  • Updated string conversions to use more idiomatic approaches
  • Resolved path handling to use display() instead of debug formatting

Testing

All existing functionality remains unchanged. The refactoring focuses on code quality improvements without altering behavior.

- Remove unstable let chain syntax in conditional expressions
- Fix needless continue statements in interrupt handling
- Simplify redundant else blocks in SSH client authentication
- Replace debug formatting with Display for paths
- Use direct method references instead of redundant closures
- Replace lossy casts with safe u32::from() conversions
- Simplify raw string literals where hashes aren't needed
- Improve error handling patterns in file operations
- Update Rust edition to 2021 in Cargo.toml

All clippy checks now pass with no warnings (cargo clippy -- -D warnings)
@inureyes inureyes added the type:refactor Code refactoring label Aug 24, 2025
@inureyes inureyes self-assigned this Aug 24, 2025
@inureyes inureyes merged commit 11a7c89 into main Aug 24, 2025
3 checks passed
@inureyes inureyes added priority:low Low priority issue status:done Completed labels Sep 9, 2025
@inureyes inureyes deleted the refactor/rust-edition-to-2021 branch October 30, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority issue status:done Completed type:refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant