From 83b1f9844483fd4fa45919c46a65d9616f600980 Mon Sep 17 00:00:00 2001 From: Hernawan Fa'iz Abdillah Date: Mon, 24 Jul 2023 10:38:12 +0700 Subject: [PATCH] remove toggler functions' return --- src/engine.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index 3164571e..3f070359 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -260,15 +260,13 @@ impl Reedline { } /// Enable keyboard enhancement to disambiguate escape code - pub fn enable_kitty_protocol(&mut self) -> Result<()> { + pub fn enable_kitty_protocol(&mut self) { self.use_kitty_protocol = true; - Ok(()) } /// Disable keyboard enhancement to disambiguate escape code - pub fn disable_kitty_protocol(&mut self) -> Result<()> { + pub fn disable_kitty_protocol(&mut self) { self.use_kitty_protocol = false; - Ok(()) } /// Return the previously generated history session id