Skip to content

Commit

Permalink
fix: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JyJyJcr committed Apr 20, 2024
1 parent 1aa4336 commit 232e57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Default for Nginx {
OsStr::from_bytes(CStr::from_bytes_with_nul(slice).unwrap().to_bytes())
}
let prefix: PathBuf = from_bytes_with_nul(nginx_sys::NGX_PREFIX).into();
fn concat_slice(prefix: &PathBuf, slice: &[u8]) -> PathBuf {
fn concat_slice(prefix: &Path, slice: &[u8]) -> PathBuf {
prefix.join(from_bytes_with_nul(slice))
}
Nginx {
Expand Down

0 comments on commit 232e57f

Please sign in to comment.