Skip to content

Commit

Permalink
Merge pull request #5 from ameknite/update-patch
Browse files Browse the repository at this point in the history
Update patch
  • Loading branch information
ameknite committed Mar 12, 2024
2 parents 4798fe7 + 480b7de commit 098d610
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 56 deletions.
96 changes: 48 additions & 48 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ categories = ["command-line-utilities"]
[dependencies]
bytes = "1.5.0"
cargo_metadata = "0.18.1"
clap = { version = "4.5.1", features = ["derive"] }
clap = { version = "4.5.2", features = ["derive"] }
color-eyre = { version = "0.6.2", default-features = false }
reqwest = "0.11.24"
reqwest = "0.11.26"
serde = { version = "1.0.197", features = ["derive"] }
spdx = "0.10.4"
tokio = { version = "1.36.0", features = ["full"] }
toml = "0.8.10"
toml = "0.8.11"
toml_edit = "0.22.6"
memchr = "2.7.1"
adler = "1.0.2"
Expand Down
10 changes: 5 additions & 5 deletions src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{fs::File, io::Write, path::Path};

use color_eyre::eyre::Result;
use serde::Serialize;
use toml_edit::{ArrayOfTables, Document, Item, Table};
use toml_edit::{ArrayOfTables, DocumentMut, Item, Table};

use crate::metadata::DependencyData;

Expand All @@ -34,8 +34,8 @@ impl<'a> DependencySerialized<'a> {
return Ok(toml_str);
}

// Parse the TOML string into a toml_edit::Document
let mut doc = toml_str.parse::<Document>()?;
// Parse the TOML string into a toml_edit::DocumentMut
let mut doc = toml_str.parse::<DocumentMut>()?;

if let Item::ArrayOfTables(array_of_tables) = &mut doc["dependencies"] {
// Rename the list
Expand Down Expand Up @@ -80,8 +80,8 @@ impl<'a> SelfSerialized<'a> {
return Ok(toml_str);
}

// Parse the TOML string into a toml_edit::Document
let mut doc = toml_str.parse::<Document>()?;
// Parse the TOML string into a toml_edit::DocumentMut
let mut doc = toml_str.parse::<DocumentMut>()?;

if let Item::Table(table) = &mut doc["self"] {
// Rename the table
Expand Down

0 comments on commit 098d610

Please sign in to comment.