Skip to content

Commit

Permalink
Update a few crates on their major version tracks
Browse files Browse the repository at this point in the history
Found via `cargo outdated` and the vets here were easy enough.
  • Loading branch information
alexcrichton committed Feb 12, 2024
1 parent c7f748d commit 5c8034b
Show file tree
Hide file tree
Showing 13 changed files with 204 additions and 80 deletions.
55 changes: 49 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ thiserror = "1.0.43"
async-trait = "0.1.71"
heck = "0.4"
similar = "2.1.0"
toml = "0.5.9"
toml = "0.8.10"
# serde and serde_derive must have the same version
serde = "1.0.188"
serde_derive = "1.0.188"
Expand Down
2 changes: 1 addition & 1 deletion crates/cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ log = { workspace = true }
serde = "1.0.188"
serde_derive = "1.0.188"
sha2 = "0.10.2"
toml = "0.5.5"
toml = { workspace = true }
zstd = { version = "0.13.0", default-features = false }

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
Expand Down
4 changes: 2 additions & 2 deletions crates/cache/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ impl CacheConfig {
match (entity_exists, user_custom_file) {
(false, false) => Ok(Self::new_cache_enabled_template()),
_ => {
let bytes = fs::read(&config_file).context(format!(
let contents = fs::read_to_string(&config_file).context(format!(
"failed to read config file: {}",
config_file.display()
))?;
let config = toml::from_slice::<Config>(&bytes[..]).context(format!(
let config = toml::from_str::<Config>(&contents).context(format!(
"failed to parse config file: {}",
config_file.display()
))?;
Expand Down
Loading

0 comments on commit 5c8034b

Please sign in to comment.