Skip to content

Commit 92e63f4

Browse files
committed
Format readline
1 parent bd772bf commit 92e63f4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

vm/src/readline.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ mod rustyline_readline {
125125

126126
#[cfg(test)]
127127
mod test_rusty_readline {
128-
use super::{Readline};
129-
use rustyline::{completion::Completer, highlight::Highlighter,
130-
validate::Validator, Context, hint::Hinter};
131-
use rustyline::error::ReadlineError;
128+
use super::Readline;
132129
use crate::readline::ReadlineResult::Line;
130+
use rustyline::error::ReadlineError;
131+
use rustyline::{
132+
completion::Completer, highlight::Highlighter, hint::Hinter, validate::Validator,
133+
Context,
134+
};
133135
struct HelperShim {}
134136
impl rustyline::Helper for HelperShim {}
135137
impl Highlighter for HelperShim {}
@@ -149,9 +151,10 @@ mod rustyline_readline {
149151
impl Hinter for HelperShim {
150152
type Hint = String;
151153
}
152-
#[test] #[ignore]
154+
#[test]
155+
#[ignore]
153156
fn test_multi_read_line() {
154-
let mut repl = Readline::new(HelperShim { });
157+
let mut repl = Readline::new(HelperShim {});
155158
if let Line(line) = repl.readline("print('hello')\nprint('hello2')\n") {
156159
assert_eq!(line, "print('hello')");
157160
}
@@ -185,4 +188,3 @@ impl<H: Helper> Readline<H> {
185188
self.0.readline(prompt)
186189
}
187190
}
188-

0 commit comments

Comments
 (0)