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

Eliminate unnecessary to_path call #239

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Eliminate unnecessary to_path call #239

merged 1 commit into from
Mar 13, 2024

Conversation

smoelius
Copy link
Contributor

This is a minor simplification.

symlink_metadata requires that its argument implement AsRef<Path>. PathBuf implements this trait. Hence, the call to to_path is unnecessary.

Found with Dylint, if interested.

@pyrossh
Copy link
Owner

pyrossh commented Mar 13, 2024

LGTM Thanks @smoelius

@pyrossh pyrossh merged commit f7c7268 into pyrossh:master Mar 13, 2024
5 checks passed
@smoelius smoelius deleted the patch-1 branch March 13, 2024 19:12
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