Skip to content

Commit 83185b4

Browse files
committed
Avoid using the tests folder for the file manipualtion test
1 parent 3899dce commit 83185b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-pass/file_manipulation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::fs::{File, remove_file};
55
use std::io::{Read, Write};
66

77
fn main() {
8-
let path = "./tests/hello.txt";
8+
let path = "hello.txt";
99
let bytes = b"Hello, World!\n";
1010
// Test creating, writing and closing a file (closing is tested when `file` is dropped).
1111
let mut file = File::create(path).unwrap();

0 commit comments

Comments
 (0)