Commit 8a760ac0 authored by AdminXVII's avatar AdminXVII

Fix tests too

parent af7084b4
Pipeline #4811 passed with stage
in 2 minutes and 57 seconds
......@@ -171,12 +171,9 @@ fn emacs_move_word<W: Write>(ed: &mut Editor<W>, direction: EmacsMoveDir) -> io:
#[cfg(test)]
mod tests {
use super::*;
use crate::{Completer, Context, Editor, KeyMap};
use std::io::Write;
use termion::event::Key;
use Completer;
use Context;
use Editor;
use KeyMap;
fn simulate_keys<'a, 'b, W: Write, M: KeyMap, I>(
keymap: &mut M,
......
......@@ -82,9 +82,9 @@ pub use emacs::Emacs;
#[cfg(test)]
mod tests {
use super::*;
use crate::Context;
use std::io::ErrorKind;
use termion::event::Key::*;
use Context;
#[derive(Default)]
struct TestKeyMap;
......
......@@ -1060,14 +1060,10 @@ impl KeyMap for Vi {
#[cfg(test)]
mod tests {
use super::*;
use crate::{Buffer, Completer, Context, Editor, KeyMap};
use std::io::Write;
use termion::event::Key;
use termion::event::Key::*;
use Buffer;
use Completer;
use Context;
use Editor;
use KeyMap;
fn simulate_keys<'a, 'b, W: Write, M: KeyMap, I>(
keymap: &mut M,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment