Skip to content

Commit 782044a

Browse files
committed
remove unused closure
1 parent 22eb233 commit 782044a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/src/snapshot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl Snapshot {
268268
let reporter = engine.get_metrics_reporter();
269269
let timer = Timer::new();
270270

271-
let result = (|| {
271+
let result = {
272272
let (metadata, protocol) = log_segment.read_metadata(engine)?;
273273

274274
reporter.as_ref().inspect(|r| {
@@ -285,7 +285,7 @@ impl Snapshot {
285285
log_segment,
286286
table_configuration,
287287
})
288-
})();
288+
};
289289

290290
match result {
291291
Ok(snapshot) => {

0 commit comments

Comments
 (0)