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?;