summary refs log tree commit diff
path: root/tests/plugins.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins.rs')
-rw-r--r--tests/plugins.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/plugins.rs b/tests/plugins.rs
index b00309f..ec094d1 100644
--- a/tests/plugins.rs
+++ b/tests/plugins.rs
@@ -67,12 +67,10 @@ fn build_plugin(src: &str) -> RemovePath {
         .stdin(Stdio::piped())
         .spawn()
         .expect("failed to spawn compiler");
-    {
-        let stdin = child.stdin.as_mut().expect("failed to open stdin");
-        stdin
-            .write_all(src.as_bytes())
-            .expect("failed to write source to stdin");
-    }
+    let stdin = child.stdin.as_mut().expect("failed to open stdin");
+    stdin
+        .write_all(src.as_bytes())
+        .expect("failed to write source to stdin");
 
     let status = child.wait().expect("failed to wait for compiler");
     assert!(status.success(), "failed to build plugin");