Skip to content

Commit b2cd3e5

Browse files
authored
use file!() even though it shouldn't be necessary
1 parent b40754f commit b2cd3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/fds-are-cloexec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn main() {
3434
}
3535

3636
fn parent() {
37-
let file = File::open("src/test/run-pass/fds-are-cloexec.rs").unwrap();
37+
let file = File::open(file!()).unwrap();
3838
let tcp1 = TcpListener::bind("127.0.0.1:0").unwrap();
3939
let tcp2 = tcp1.try_clone().unwrap();
4040
let addr = tcp1.local_addr().unwrap();

0 commit comments

Comments
 (0)