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 1
1
---
2
- refs/heads/master: e4d4a1499bfa1d09f15b6d10a0bd063b25574ce4
2
+ refs/heads/master: e22d2bc4bc4ed84c72148bdd00c8da0eb4238c45
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
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