Skip to content

Commit e56ff1d

Browse files
committed
---
yaml --- r: 42644 b: refs/heads/try c: e22d2bc h: refs/heads/master v: v3
1 parent 09c5a32 commit e56ff1d

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: e4d4a1499bfa1d09f15b6d10a0bd063b25574ce4
5+
refs/heads/try: e22d2bc4bc4ed84c72148bdd00c8da0eb4238c45
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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)