Skip to content

Commit

Permalink
chore: Enable clippy pathbuf_init_then_push lint (#2324)
Browse files Browse the repository at this point in the history
And fix the warnings.
  • Loading branch information
larseggert authored Jan 8, 2025
1 parent 808b018 commit ef9e4dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
if_then_some_else_none = "warn"
get_unwrap = "warn"
pathbuf_init_then_push = "warn"

# Optimize build dependencies, because bindgen and proc macros / style
# compilation take more to run than to build otherwise.
Expand Down
3 changes: 1 addition & 2 deletions neqo-bin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ mod tests {

impl TempDir {
fn new() -> Self {
let mut dir = std::env::temp_dir();
dir.push(format!(
let dir = std::env::temp_dir().join(format!(
"neqo-bin-test-{}",
SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
Expand Down

0 comments on commit ef9e4dc

Please sign in to comment.