Skip to content

Commit

Permalink
Update toml-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Jun 15, 2024
1 parent 0be7b0e commit 6b77f0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions xtask/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 xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ anyhow = { version = "1.0.72", features = ["backtrace"] }
argp = "0.3"
glob = { version = "0.3.1", default-features = false }
semver = "1.0.18"
toml_edit = { version = "0.19.14", features = ["perf"] }
toml_edit = { version = "0.22.14", features = ["perf"] }

[workspace]
6 changes: 3 additions & 3 deletions xtask/src/crates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use std::fs;
use std::path::{Path, PathBuf};

use semver::{BuildMetadata, Prerelease};
use toml_edit::Document;
use toml_edit::DocumentMut;

use crate::Result;

pub struct Crate {
path: PathBuf,
doc: Document,
doc: DocumentMut,
}

impl Crate {
Expand All @@ -22,7 +22,7 @@ impl Crate {
pub fn from_str(path: impl AsRef<Path>, source: &str) -> Result<Self> {
Ok(Self {
path: path.as_ref().to_path_buf(),
doc: source.parse::<Document>()?,
doc: source.parse::<DocumentMut>()?,
})
}

Expand Down

0 comments on commit 6b77f0f

Please sign in to comment.