diff options
Diffstat (limited to 'src/edit.rs')
-rw-r--r-- | src/edit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.rs b/src/edit.rs index cb59366..4862c0b 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -3,10 +3,10 @@ use crate::prelude::*; use std::io::{Read as _, Write as _}; pub fn edit(contents: &str, help: &str) -> Result<String> { - if ! atty::is(atty::Stream::Stdin) { + if !atty::is(atty::Stream::Stdin) { // directly read from piped content return match std::io::read_to_string(std::io::stdin()) { - Err(e) => Err(Error::FailedToReadFromStdin{ err: e }), + Err(e) => Err(Error::FailedToReadFromStdin { err: e }), Ok(res) => Ok(res), }; } |