From b9621938865d4ad24d7bcee7fdbfa0c9c45978c8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Jan 2024 16:06:10 -0500 Subject: clippy and fmt --- src/edit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/edit.rs') 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 { - 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), }; } -- cgit v1.2.3-54-g00ecf