summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-09-04 13:56:44 -0400
committerBen Morrison <ben@gbmor.dev>2019-09-04 13:56:44 -0400
commit19ae5c3b7d998d7a4406e45180e8cb16084ddf88 (patch)
treeb7667e45670dfb96561c14c3cec38e20d2591088 /src
parentc0ce5eff2797dd7e5652fd15594f170cd90d8ac9 (diff)
downloadclinte-19ae5c3b7d998d7a4406e45180e8cb16084ddf88.tar.gz
removing temp file
Diffstat (limited to 'src')
-rw-r--r--src/ed.rs4
1 files changed, 3 insertions, 1 deletions
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
 }