Skip to content

Commit 43a5542

Browse files
dependabot[bot]d-e-s-o
authored andcommitted
Bump toml from 0.5.9 to 0.7.6
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] <support@github.com>
1 parent e7ad88e commit 43a5542

File tree

4 files changed

+74
-8
lines changed

4 files changed

+74
-8
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Unreleased
1414
- Bumped `libc` dependency to `0.2.159`
1515
- Bumped `serde` dependency to `1.0.147`
1616
- Bumped `structopt` dependency to `0.3.26`
17-
- Bumped `toml` dependency to `0.5.9`
17+
- Bumped `toml` dependency to `0.7.6`
1818

1919

2020
0.4.1

Cargo.lock

+69-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ default-features = false
7474
version = "1.5.5"
7575

7676
[dependencies.toml]
77-
version = "0.5.6"
77+
version = "0.7.6"
7878

7979
[dev-dependencies.nitrokey-test]
8080
version = "0.5"

ext/otp_cache.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ fn save_cache(cache: &Cache, path: &path::Path) -> anyhow::Result<()> {
125125
fs::create_dir_all(parent).context("Failed to create cache parent directory")?;
126126
}
127127
let mut f = fs::File::create(path).context("Failed to create cache file")?;
128-
let data = toml::to_vec(cache).context("Failed to serialize cache")?;
129-
f.write_all(&data).context("Failed to write cache file")?;
128+
let data = toml::to_string(cache).context("Failed to serialize cache")?;
129+
f.write_all(data.as_bytes())
130+
.context("Failed to write cache file")?;
130131
Ok(())
131132
}
132133

0 commit comments

Comments
 (0)