prompt configuration validated

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-01-22 19:47:05 -08:00
parent 71b70fe4b8
commit 45453f819f
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
2 changed files with 2 additions and 5 deletions

View file

@ -27,9 +27,7 @@ use std::io::{self, Write};
use std::rc::Rc;
fn prompt_default_callback(_: Ast, _: Rc<RefCell<VTable>>, _: Rc<RefCell<FTable>>) -> Ctr {
print!("λ ");
io::stdout().flush().unwrap();
return Ctr::None;
return Ctr::String("λ ".to_string());
}
pub fn configure(filename: String, vars: Rc<RefCell<VTable>>) -> Result<Rc<RefCell<FTable>>, String> {