Use yaml_serde in place of deprecated serde_yaml (#9040)

`serde_yaml` is now deprecated. The API-compatible `yaml_serde` should be used instead.


  Replace `serde_yaml` with `yaml_serde`. This is purely mechanical as the API is 1-to-1.


Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
Mac L
2026-03-29 22:39:20 +04:00
committed by GitHub
parent e1a2cfe202
commit a5e748f808
27 changed files with 88 additions and 87 deletions

View File

@@ -141,7 +141,7 @@ fn decode_and_print<T: Serialize>(
OutputFormat::Yaml => {
println!(
"{}",
serde_yaml::to_string(&item)
yaml_serde::to_string(&item)
.map_err(|e| format!("Unable to write object to YAML: {e:?}"))?
);
}