From 33367ed9c6383d2e11845f57be3df49221287db7 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Wed, 13 Dec 2023 00:30:47 -0500 Subject: [PATCH] fmt --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 414a161..ca6b624 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,9 @@ async fn readline(msg: &str) -> eyre::Result { } async fn editor(contents: &mut String, ext: Option<&str>) -> eyre::Result<()> { - let editor = std::path::PathBuf::from(std::env::var_os("EDITOR").ok_or_else(|| eyre!("unable to locate editor"))?); + let editor = std::path::PathBuf::from( + std::env::var_os("EDITOR").ok_or_else(|| eyre!("unable to locate editor"))?, + ); let (mut file, path) = tempfile(ext).await?; file.write_all(contents.as_bytes()).await?;