diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-01-01 16:06:10 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-01-01 16:06:30 -0500 |
commit | b9621938865d4ad24d7bcee7fdbfa0c9c45978c8 (patch) | |
tree | 35430485e92c6e4c9d9747748e9c775debbe0917 /src/edit.rs | |
parent | 21e70ce32bdab89adbb66b32c8b69d4b806e5d5f (diff) | |
download | rbw-b9621938865d4ad24d7bcee7fdbfa0c9c45978c8.tar.gz rbw-b9621938865d4ad24d7bcee7fdbfa0c9c45978c8.zip |
clippy and fmt
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), }; } |