From 7d34e6e880935fe7c79bb74444bd65d155bebc72 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 26 Aug 2022 19:41:56 +0300 Subject: refactor(tvix/eval): explicitly discard uninteresting results Change-Id: I95a2ad61d9512b91017c801f325d0193b4da9c7d Reviewed-on: https://cl.tvl.fyi/c/depot/+/6280 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/eval/src') diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs index 4d0f12337154..6383ed2bf8fc 100644 --- a/tvix/eval/src/main.rs +++ b/tvix/eval/src/main.rs @@ -45,9 +45,9 @@ fn run_prompt() { // Attempt to set up these paths, but do not hard fail if it // doesn't work. Some(mut path) => { - std::fs::create_dir_all(&path).ok(); + let _ = std::fs::create_dir_all(&path); path.push("history.txt"); - rl.load_history(&path).ok(); + let _ = rl.load_history(&path); Some(path) } -- cgit 1.4.1