Skip to content

Commit 403b240

Browse files
committed
---
yaml --- r: 41978 b: refs/heads/master c: e22d2bc h: refs/heads/master v: v3
1 parent 1a46dc4 commit 403b240

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e4d4a1499bfa1d09f15b6d10a0bd063b25574ce4
2+
refs/heads/master: e22d2bc4bc4ed84c72148bdd00c8da0eb4238c45
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libcore/io.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,10 +1108,13 @@ pub mod fsync {
11081108
// Artifacts that need to fsync on destruction
11091109
pub struct Res<t: Copy> {
11101110
arg: Arg<t>,
1111-
drop {
1111+
}
1112+
1113+
impl<T: Copy> Res<T>: Drop {
1114+
fn finalize(&self) {
11121115
match self.arg.opt_level {
1113-
option::None => (),
1114-
option::Some(level) => {
1116+
None => (),
1117+
Some(level) => {
11151118
// fail hard if not succesful
11161119
assert((self.arg.fsync_fn)(self.arg.val, level) != -1);
11171120
}

0 commit comments

Comments
 (0)