summary refs log tree commit diff stats
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
parentc0ce5eff2797dd7e5652fd15594f170cd90d8ac9 (diff)
downloadclinte-19ae5c3b7d998d7a4406e45180e8cb16084ddf88.tar.gz
removing temp file
-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
 }
9.1&id=64845d2a45844aa683756a4830e82feba525f1c0'>^
64845d2a ^

1902d5e0 ^
64845d2a ^
1902d5e0 ^
ded8e675 ^
64845d2a ^
1902d5e0 ^
64845d2a ^
1902d5e0 ^
ded8e675 ^
64845d2a ^
1902d5e0 ^


ded8e675 ^
e26d163d ^




64845d2a ^

1902d5e0 ^





64845d2a ^
1902d5e0 ^
64845d2a ^

1902d5e0 ^
64845d2a ^
ded8e675 ^
64845d2a ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53