mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +00:00
codegen: Use toml_edit directly
This commit is contained in:
@@ -15,5 +15,5 @@ serde_derive = "1"
|
|||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
sha2 = "0.10"
|
sha2 = "0.10"
|
||||||
tar = "0.4"
|
tar = "0.4"
|
||||||
toml = "0.8"
|
toml_edit = { version = "0.20", features = ["serde"] }
|
||||||
ureq = { version = "2", features = ["json"] }
|
ureq = { version = "2", features = ["json"] }
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ fn main() -> Result<()> {
|
|||||||
eprintln!("download complete");
|
eprintln!("download complete");
|
||||||
}
|
}
|
||||||
if pubkey.is_none() {
|
if pubkey.is_none() {
|
||||||
let cargo_manifest = toml::from_str::<cargo_manifest::Manifest>(
|
let cargo_manifest = toml_edit::de::from_str::<cargo_manifest::Manifest>(
|
||||||
&fs::read_to_string(crate_download_cache)?,
|
&fs::read_to_string(crate_download_cache)?,
|
||||||
)?;
|
)?;
|
||||||
eprintln!(
|
eprintln!(
|
||||||
|
|||||||
Reference in New Issue
Block a user