File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: e4d4a1499bfa1d09f15b6d10a0bd063b25574ce4
5
+ refs/heads/try: e22d2bc4bc4ed84c72148bdd00c8da0eb4238c45
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change @@ -1108,10 +1108,13 @@ pub mod fsync {
1108
1108
// Artifacts that need to fsync on destruction
1109
1109
pub struct Res < t : Copy > {
1110
1110
arg : Arg < t > ,
1111
- drop {
1111
+ }
1112
+
1113
+ impl < T : Copy > Res < T > : Drop {
1114
+ fn finalize ( & self ) {
1112
1115
match self . arg . opt_level {
1113
- option : : None => ( ) ,
1114
- option : : Some ( level ) => {
1116
+ None => ( ) ,
1117
+ Some ( level) => {
1115
1118
// fail hard if not succesful
1116
1119
assert ( ( self . arg . fsync_fn ) ( self . arg . val , level) != -1 ) ;
1117
1120
}
You can’t perform that action at this time.
0 commit comments