Skip to content

Commit

Permalink
Avoid unnecessary heap allocation and copy (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryco117 authored Feb 24, 2024
1 parent 4271d21 commit 73dcdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file_handle/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl From<PathBuf> for FileHandle {

impl From<FileHandle> for PathBuf {
fn from(file_handle: FileHandle) -> Self {
PathBuf::from(file_handle.path())
file_handle.0
}
}

Expand Down

0 comments on commit 73dcdf0

Please sign in to comment.