From 1999343d2fb0e5a0104624dd6f704161fb3c7651 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 20 Aug 2020 10:33:02 +0100 Subject: [PATCH] [thin_check (rust)] squash a couple of warnings --- src/thin/check.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/thin/check.rs b/src/thin/check.rs index afe0fb3..fb5d2db 100644 --- a/src/thin/check.rs +++ b/src/thin/check.rs @@ -520,27 +520,26 @@ pub fn check(opts: ThinCheckOptions) -> Result<()> { // Now the counts should be correct and we can check it. let metadata_leaks = check_space_map(&ctx, "metadata", entries, None, metadata_sm.clone(), root)?; + bail_out(&ctx, "metadata space map")?; if opts.auto_repair { if data_leaks.len() > 0 { ctx.report.info("Repairing data leaks."); - repair_space_map(&ctx, data_leaks, data_sm.clone()); + repair_space_map(&ctx, data_leaks, data_sm.clone())?; } if metadata_leaks.len() > 0 { ctx.report.info("Repairing metadata leaks."); - repair_space_map(&ctx, metadata_leaks, metadata_sm.clone()); + repair_space_map(&ctx, metadata_leaks, metadata_sm.clone())?; } } - // Completing consumes the report. { let mut stop_progress = stop_progress.lock().unwrap(); *stop_progress = true; } tid.join(); - bail_out(&ctx, "metadata space map")?; Ok(()) }