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 14, 2024
1 parent a1f8d9e commit e94f541
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 e94f541

Please sign in to comment.