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 9, 2024
1 parent e7ad88e commit 43a5542
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 8 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
73 changes: 69 additions & 4 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 @@ -74,7 +74,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 43a5542

Please sign in to comment.