Skip to content

Commit f5d78c8

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

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
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

Lines changed: 6 additions & 7 deletions
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() {
@@ -391,10 +390,10 @@ mod tests {
391390
let krate = Crate::local("/dev/null".as_ref());
392391
let patches: Vec<CratePatch> = Vec::new();
393392
let mut tweaker =
394-
TomlTweaker::new_with_table(&krate, toml.as_table().unwrap().clone(), &patches);
393+
TomlTweaker::new_with_table(&krate, toml, &patches);
395394
tweaker.tweak();
396395

397-
assert_eq!(Value::Table(tweaker.table), result);
396+
assert_eq!(tweaker.table, result);
398397
}
399398

400399
#[test]
@@ -427,10 +426,10 @@ mod tests {
427426
let krate = Crate::local("/dev/null".as_ref());
428427
let patches: Vec<CratePatch> = Vec::new();
429428
let mut tweaker =
430-
TomlTweaker::new_with_table(&krate, toml.as_table().unwrap().clone(), &patches);
429+
TomlTweaker::new_with_table(&krate, toml, &patches);
431430
tweaker.tweak();
432431

433-
assert_eq!(Value::Table(tweaker.table), result);
432+
assert_eq!(tweaker.table, result);
434433
}
435434

436435
#[test]
@@ -486,9 +485,9 @@ mod tests {
486485
}),
487486
];
488487
let mut tweaker =
489-
TomlTweaker::new_with_table(&krate, toml.as_table().unwrap().clone(), &patches);
488+
TomlTweaker::new_with_table(&krate, toml, &patches);
490489
tweaker.tweak();
491490

492-
assert_eq!(Value::Table(tweaker.table), result);
491+
assert_eq!(tweaker.table, result);
493492
}
494493
}

0 commit comments

Comments
 (0)