Skip to content

Commit ef9e4dc

Browse files
authored
chore: Enable clippy pathbuf_init_then_push lint (#2324)
And fix the warnings.
1 parent 808b018 commit ef9e4dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ nursery = { level = "warn", priority = -1 }
4444
pedantic = { level = "warn", priority = -1 }
4545
if_then_some_else_none = "warn"
4646
get_unwrap = "warn"
47+
pathbuf_init_then_push = "warn"
4748

4849
# Optimize build dependencies, because bindgen and proc macros / style
4950
# compilation take more to run than to build otherwise.

neqo-bin/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ mod tests {
276276

277277
impl TempDir {
278278
fn new() -> Self {
279-
let mut dir = std::env::temp_dir();
280-
dir.push(format!(
279+
let dir = std::env::temp_dir().join(format!(
281280
"neqo-bin-test-{}",
282281
SystemTime::now()
283282
.duration_since(SystemTime::UNIX_EPOCH)

0 commit comments

Comments
 (0)