Skip to content

fix(windows): normalize_path - strip trailing spaces and dots#21

Merged
dsherret merged 6 commits into
mainfrom
fix_trim_dots_and_trailing_spaces_windows
Oct 29, 2025
Merged

fix(windows): normalize_path - strip trailing spaces and dots#21
dsherret merged 6 commits into
mainfrom
fix_trim_dots_and_trailing_spaces_windows

Conversation

@dsherret
Copy link
Copy Markdown
Contributor

Windows strips trailing spaces and dots.

@dsherret dsherret requested a review from Copilot October 29, 2025 17:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the project to use Rust edition 2024 and toolchain 1.90.0, while adding support for Windows-specific path normalization that strips trailing dots and spaces from path components. The changes leverage new Rust 2024 features such as let chains in if conditions.

  • Updates Rust toolchain from 1.86.0 to 1.90.0 and edition from 2021 to 2024
  • Implements Windows path normalization to strip trailing dots and spaces
  • Refactors conditional logic using Rust 2024's let chain syntax

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/lib.rs Adds Windows path component normalization logic, refactors nested conditionals to use let chains, reorders imports alphabetically, and adds test cases for trailing dots/spaces
src/fs.rs Reorders imports to follow alphabetical convention
rust-toolchain.toml Updates Rust toolchain version from 1.86.0 to 1.90.0
Cargo.toml Updates Rust edition from 2021 to 2024

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib.rs
Comment thread src/lib.rs
Copy link
Copy Markdown
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret merged commit d79403d into main Oct 29, 2025
10 checks passed
@dsherret dsherret deleted the fix_trim_dots_and_trailing_spaces_windows branch October 29, 2025 18:11
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.

3 participants