Skip to content

Commit e03d864

Browse files
committed
Update a few dependencies
This reduces the number of duplicate dependencies in docs.rs.
1 parent a27fce6 commit e03d864

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ flate2 = "1"
3333
tar = "0.4.0"
3434
percent-encoding = "2.1.0"
3535
walkdir = "2.2"
36-
toml = "0.5"
36+
toml = "0.7"
3737
fs2 = "0.4.3"
3838
remove_dir_all = "0.7"
3939
base64 = "0.13.0"
@@ -42,7 +42,7 @@ thiserror = "1.0.20"
4242
git2 = "0.14.0"
4343

4444
[target.'cfg(unix)'.dependencies]
45-
nix = "0.25.0"
45+
nix = "0.26.0"
4646

4747
[target.'cfg(windows)'.dependencies]
4848
windows-sys = {version = "0.36.1", features = ["Win32_Foundation", "Win32_System_Threading"]}

src/prepare.rs

+6-10
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ mod tests {
374374
use super::TomlTweaker;
375375
use crate::build::{CratePatch, GitCratePatch, PathCratePatch};
376376
use crate::crates::Crate;
377-
use toml::{self, Value};
378377

379378
#[test]
380379
fn test_tweak_table_noop() {
@@ -390,11 +389,10 @@ mod tests {
390389

391390
let krate = Crate::local("/dev/null".as_ref());
392391
let patches: Vec<CratePatch> = Vec::new();
393-
let mut tweaker =
394-
TomlTweaker::new_with_table(&krate, toml.as_table().unwrap().clone(), &patches);
392+
let mut tweaker = TomlTweaker::new_with_table(&krate, toml, &patches);
395393
tweaker.tweak();
396394

397-
assert_eq!(Value::Table(tweaker.table), result);
395+
assert_eq!(tweaker.table, result);
398396
}
399397

400398
#[test]
@@ -426,11 +424,10 @@ mod tests {
426424

427425
let krate = Crate::local("/dev/null".as_ref());
428426
let patches: Vec<CratePatch> = Vec::new();
429-
let mut tweaker =
430-
TomlTweaker::new_with_table(&krate, toml.as_table().unwrap().clone(), &patches);
427+
let mut tweaker = TomlTweaker::new_with_table(&krate, toml, &patches);
431428
tweaker.tweak();
432429

433-
assert_eq!(Value::Table(tweaker.table), result);
430+
assert_eq!(tweaker.table, result);
434431
}
435432

436433
#[test]
@@ -485,10 +482,9 @@ mod tests {
485482
path: "/path/to/baz".into(),
486483
}),
487484
];
488-
let mut tweaker =
489-
TomlTweaker::new_with_table(&krate, toml.as_table().unwrap().clone(), &patches);
485+
let mut tweaker = TomlTweaker::new_with_table(&krate, toml, &patches);
490486
tweaker.tweak();
491487

492-
assert_eq!(Value::Table(tweaker.table), result);
488+
assert_eq!(tweaker.table, result);
493489
}
494490
}

0 commit comments

Comments
 (0)