Skip to content

Commit b36ca36

Browse files
committed
Fix unused warning in the testsuite
This was warning on all targets except for linux.
1 parent 5fd02fe commit b36ca36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/script/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::fs;
2-
use std::io::Write;
32

43
use crate::prelude::*;
54
use cargo_test_support::basic_manifest;
@@ -2179,6 +2178,7 @@ args: []
21792178
#[cargo_test(nightly, reason = "-Zscript is unstable")]
21802179
#[cfg(target_os = "linux")]
21812180
fn memfd_script() {
2181+
use std::io::Write;
21822182
use std::os::fd::AsRawFd;
21832183

21842184
let fd = memfd::MemfdOptions::new()

0 commit comments

Comments
 (0)