Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2024-10-08 03:21:11 +00:00 committed by GitHub
parent a9df137402
commit 92ab3cafa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,8 @@ fn main() -> anyhow::Result<()> {
Ok((entry_path, zip_filename, zip_contents)) => {
let metadata_path = entry_path.join("metadata.json");
let metadata_contents = fs::read_to_string(&metadata_path)?;
let metadata_contents: serde_json::Value = serde_json::from_str(&metadata_contents)?;
let metadata_contents: serde_json::Value =
serde_json::from_str(&metadata_contents)?;
file_to_metadata.insert(zip_filename.clone(), metadata_contents);
let zip_path = target_packages_dir.join(&zip_filename);
fs::write(&zip_path, &zip_contents)?;