From 2ad8d25d2e384e14f351738101e3bf0834654ef6 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sat, 10 Dec 2022 16:26:45 +0100 Subject: [PATCH] Small fixes in tests. --- src/repl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/repl.rs b/src/repl.rs index c7e68fb..541f4ff 100644 --- a/src/repl.rs +++ b/src/repl.rs @@ -105,11 +105,11 @@ impl<'a> LKEval<'a> { } } None => out.push("error: password not found".to_string()), - } + }, Command::Rm(name) => match self.state.borrow_mut().db.remove(name) { Some(pwd) => out.push(format!("removed {}", pwd.borrow().name)), None => out.push("error: password not found".to_string()), - } + }, Command::Help => { out.push("HELP".to_string()); } @@ -135,7 +135,7 @@ impl<'a> LKEval<'a> { LKErr::ParseError(e) => out.push(e.to_string()), LKErr::ReadError(e) => out.push(e.to_string()), LKErr::Error(e) => out.push(format!("error: {}", e.to_string())), - } + }, } LKPrint::new(out, quit, self.state.clone())