Skip to content

Reduce unsafe operations in VFS filename handling - #190

Merged
Spxg merged 1 commit into
Spxg:masterfrom
mu001999-contrib:fix/vfs-filename-ownership
Sep 18, 2026
Merged

Spxg merged 1 commit into
Spxg:masterfrom
mu001999-contrib:fix/vfs-filename-ownership

Conversation

@mu001999

Copy link
Copy Markdown
Contributor

fn name() is already unsafe, so callers remain responsible for ensuring the filename is valid while borrowed.

Returning &'static mut str unnecessarily exposes mutable access and an unbounded lifetime.

@Spxg
Spxg merged commit 004396b into Spxg:master Sep 18, 2026
17 checks passed
@mu001999
mu001999 deleted the fix/vfs-filename-ownership branch September 18, 2026 15:43
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