Skip to content

Commit

Permalink
Avoid unnecessary heap allocation and copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryco117 committed Feb 23, 2024
1 parent 4271d21 commit cd55908
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 cd55908

Please sign in to comment.