We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40dafdb commit eb84e37Copy full SHA for eb84e37
crates/lib/src/cli.rs
@@ -1284,7 +1284,7 @@ async fn edit_ostree(
1284
let mut r = std::io::BufReader::new(std::fs::File::open(filename)?);
1285
serde_yaml::from_reader(&mut r)?
1286
} else {
1287
- let tmpf = tempfile::NamedTempFile::new()?;
+ let tmpf = tempfile::NamedTempFile::with_suffix(".yaml")?;
1288
serde_yaml::to_writer(std::io::BufWriter::new(tmpf.as_file()), &host)?;
1289
crate::utils::spawn_editor(&tmpf)?;
1290
tmpf.as_file().seek(std::io::SeekFrom::Start(0))?;
0 commit comments