You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using file.to_string_lossy().starts_with("~") assumes that paths starting with ~ are absolute, but Rust does not automatically expand ~ to the user's home directory. This may lead to incorrect path handling.
Implement proper tilde expansion in file paths
Using
file.to_string_lossy().starts_with("~")
assumes that paths starting with~
are absolute, but Rust does not automatically expand~
to the user's home directory. This may lead to incorrect path handling.Consider implementing tilde (
~
) expansion explicitly:This ensures that paths starting with
~
are correctly expanded to the user's home directory.Originally posted by @coderabbitai[bot] in #156 (comment)
The text was updated successfully, but these errors were encountered: