@@ -1268,10 +1268,8 @@ mod test {
1268
1268
if file. unlinked && file. read_only {
1269
1269
if file. open_handles > 0 {
1270
1270
// Should remain in state.nodes
1271
- assert ! (
1272
- state. nodes. contains_key( & inode) ,
1273
- "Unlinked, read-only file with open handles should remain in state.nodes"
1274
- ) ;
1271
+ assert ! ( state. nodes. contains_key( & inode) ,
1272
+ "Unlinked, read-only file with open handles should remain in state.nodes" ) ;
1275
1273
1276
1274
// There should be valid file handles pointing to this inode
1277
1275
let valid_handles: Vec < _ > = state
@@ -1286,16 +1284,12 @@ mod test {
1286
1284
} )
1287
1285
. collect ( ) ;
1288
1286
1289
- assert ! (
1290
- !valid_handles. is_empty( ) ,
1291
- "Unlinked, read-only file with open handles should have valid file handles"
1292
- ) ;
1287
+ assert ! ( !valid_handles. is_empty( ) ,
1288
+ "Unlinked, read-only file with open handles should have valid file handles" ) ;
1293
1289
} else {
1294
1290
// Should be removed from state.nodes after GC
1295
- assert ! (
1296
- !state. nodes. contains_key( & inode) ,
1297
- "Unlinked, read-only file with zero open handles should be removed from state.nodes"
1298
- ) ;
1291
+ assert ! ( !state. nodes. contains_key( & inode) ,
1292
+ "Unlinked, read-only file with zero open handles should be removed from state.nodes" ) ;
1299
1293
}
1300
1294
}
1301
1295
}
0 commit comments