diff options
| author | bors <bors@rust-lang.org> | 2013-12-04 01:36:29 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-04 01:36:29 -0800 |
| commit | 9635c763ba5edc8c8ea2868b895548b52f640e5a (patch) | |
| tree | 95752f46f0ef6d8a85c6f9207a863eb5f4d362a6 /src/libstd/io | |
| parent | 63c9522c27647cd5f547a0622ce24026e230de33 (diff) | |
| parent | a243360401790476deea3d502f644783ed8d7563 (diff) | |
| download | rust-9635c763ba5edc8c8ea2868b895548b52f640e5a.tar.gz rust-9635c763ba5edc8c8ea2868b895548b52f640e5a.zip | |
auto merge of #10783 : sfackler/rust/drop, r=alexcrichton
It's a more fitting name for the most common use case of this function.
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs index ee7d851679d..e239f630f01 100644 --- a/src/libstd/io/fs.rs +++ b/src/libstd/io/fs.rs @@ -1179,7 +1179,7 @@ mod test { file.write(bytes!("foo")); file.fsync(); file.datasync(); - util::ignore(file); + drop(file); }) test!(fn truncate_works() { @@ -1210,7 +1210,7 @@ mod test { assert_eq!(stat(&path).size, 9); assert_eq!(File::open(&path).read_to_end(), (bytes!("fo", 0, 0, 0, 0, "wut")).to_owned()); - util::ignore(file); + drop(file); }) test!(fn open_flavors() { |
