From 19ae5c3b7d998d7a4406e45180e8cb16084ddf88 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 4 Sep 2019 13:56:44 -0400 Subject: removing temp file --- src/ed.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ed.rs b/src/ed.rs index 17b73fa..d51f5b0 100644 --- a/src/ed.rs +++ b/src/ed.rs @@ -47,5 +47,7 @@ pub fn call() -> String { .output(), ); - error::helper(fs::read_to_string(tmp_loc)) + let body = error::helper(fs::read_to_string(tmp_loc.clone())); + error::helper(fs::remove_file(tmp_loc)); + body } -- cgit 1.4.1-2-gfad0