Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit 7e8ba7f

Browse files
committed
Add necessary use statements to example
1 parent 4bbb0a8 commit 7e8ba7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ This sample method does the following:
3535
5. Close the directory, deleting the contents in the process.
3636

3737
```rust
38+
use std::io::{self, Write};
39+
use std::fs::File;
40+
use tempdir::TempDir;
41+
3842
fn write_temp_folder_with_files() -> Result<(), io::Error> {
3943
let dir = TempDir::new("my_directory_prefix")?;
4044
let file_path = dir.path().join("foo.txt");

0 commit comments

Comments
 (0)