Skip to content

Commit

Permalink
Bump toml from 0.5.9 to 0.7.6
Browse files Browse the repository at this point in the history
Bumps [toml](https://github.com/toml-rs/toml) from 0.5.9 to 0.7.6.
- [Commits](https://github.com/toml-rs/toml/commits/toml-v0.7.6)

---
updated-dependencies:
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and d-e-s-o committed Oct 26, 2024
1 parent a295744 commit a22d9f1
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Unreleased
- Bumped `libc` dependency to `0.2.159`
- Bumped `serde` dependency to `1.0.147`
- Bumped `structopt` dependency to `0.3.26`
- Bumped `toml` dependency to `0.5.9`
- Bumped `toml` dependency to `0.7.6`


0.4.1
Expand Down
69 changes: 67 additions & 2 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 @@ -75,7 +75,7 @@ default-features = false
version = "1.5.5"

[dependencies.toml]
version = "0.5.6"
version = "0.7.6"

[dev-dependencies.nitrokey-test]
version = "0.5"
Expand Down
5 changes: 3 additions & 2 deletions ext/otp_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ fn save_cache(cache: &Cache, path: &path::Path) -> anyhow::Result<()> {
fs::create_dir_all(parent).context("Failed to create cache parent directory")?;
}
let mut f = fs::File::create(path).context("Failed to create cache file")?;
let data = toml::to_vec(cache).context("Failed to serialize cache")?;
f.write_all(&data).context("Failed to write cache file")?;
let data = toml::to_string(cache).context("Failed to serialize cache")?;
f.write_all(data.as_bytes())
.context("Failed to write cache file")?;
Ok(())
}

Expand Down

0 comments on commit a22d9f1

Please sign in to comment.