Reformat code.
This commit is contained in:
+6
-9
@@ -1,24 +1,21 @@
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
mod structs;
|
||||
mod password;
|
||||
mod parser;
|
||||
mod repl;
|
||||
mod lk;
|
||||
mod parser;
|
||||
mod password;
|
||||
mod repl;
|
||||
mod structs;
|
||||
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
use rustyline::Editor;
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
|
||||
use crate::lk::LK;
|
||||
use crate::repl::LKRead;
|
||||
|
||||
pub fn main() {
|
||||
let lk = Rc::new(RefCell::new(LK::new()));
|
||||
let mut lkread = LKRead::new(
|
||||
Editor::<()>::new().unwrap(),
|
||||
String::from("❯ "),
|
||||
lk.clone());
|
||||
let mut lkread = LKRead::new(Editor::<()>::new().unwrap(), String::from("❯ "), lk.clone());
|
||||
|
||||
while lkread.read().eval().print() {
|
||||
lkread.refresh();
|
||||
|
||||
Reference in New Issue
Block a user