Skip to content

Remove instances of to_string_lossy#1766

Merged
Ericson2314 merged 2 commits into
NixOS:masterfrom
obsidiansystems:no-to-string-lossy
May 27, 2026
Merged

Remove instances of to_string_lossy#1766
Ericson2314 merged 2 commits into
NixOS:masterfrom
obsidiansystems:no-to-string-lossy

Conversation

@artemist
Copy link
Copy Markdown
Member

The to_string_lossy function is rarely what one wants, as it silently replaces characters with replacements. Remove all usages by either handling utf-8 errors or replacing strings with PathBuf objects, where paths should be stored.

@Ericson2314 Ericson2314 added this pull request to the merge queue May 27, 2026
@Ericson2314
Copy link
Copy Markdown
Member

Thanks!

Merged via the queue into NixOS:master with commit a6e5fed May 27, 2026
2 checks passed
@Ericson2314 Ericson2314 deleted the no-to-string-lossy branch May 27, 2026 21:36
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