Plus de warnings

This commit is contained in:
Justine 2022-12-28 12:40:44 +01:00
parent 4581d4f0f6
commit fd4aa0d2bf

View File

@ -12,7 +12,7 @@ pub mod shell {
use termion::event::Key;
use termion::input::TermRead;
use termion::raw::IntoRawMode;
use termion::{color, cursor, cursor::DetectCursorPos};
use termion::{color, cursor};
use unicode_segmentation::UnicodeSegmentation;
mod history;
@ -212,7 +212,7 @@ pub mod shell {
//clears currently written command from the screen
//...NOT from the variable !
let mut stdout = stdout().into_raw_mode().unwrap();
for i in 0..*max_pos {
for _i in 0..*max_pos {
write!(stdout, "{}", cursor::Left(1));
write!(stdout, "\x1b[K").unwrap();
}