From e3a2403d07c9e040c8ec22f4eab43e5e1de3950c Mon Sep 17 00:00:00 2001 From: Cai Bingjun <1945458160@qq.com> Date: Tue, 6 Jun 2023 22:57:47 +0800 Subject: [PATCH] fmt/clean --- crates/erg_common/stdin.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/erg_common/stdin.rs b/crates/erg_common/stdin.rs index 48706c6b..4fbac436 100644 --- a/crates/erg_common/stdin.rs +++ b/crates/erg_common/stdin.rs @@ -6,7 +6,7 @@ use std::io::{stdin, BufRead, BufReader}; #[cfg(feature = "full-repl")] use crossterm::{ - cursor::{MoveToColumn}, + cursor::MoveToColumn, event::{read, Event, KeyCode, KeyEvent, KeyModifiers}, execute, style::Print, @@ -123,7 +123,8 @@ impl StdinReader { { consult_history = false; match (code, modifiers) { - (KeyCode::Char('z'), KeyModifiers::CONTROL) | (KeyCode::Char('d'), KeyModifiers::CONTROL) => { + (KeyCode::Char('z'), KeyModifiers::CONTROL) + | (KeyCode::Char('d'), KeyModifiers::CONTROL) => { println!(); line.clear(); line.push_str(":exit");