Skip to content

Commit

Permalink
core: Never inline Path to PathBuf conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Oct 15, 2024
1 parent bea4641 commit d86f5fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ impl PathBuf {
}

impl From<&Path> for PathBuf {
#[inline(never)]
fn from(path: &Path) -> Self {
let bytes = path.as_ref().as_bytes();

Expand Down

0 comments on commit d86f5fa

Please sign in to comment.