Hide close(), the user is supposed to drop instead

This commit is contained in:
Michael Vines
2019-03-07 13:03:55 -08:00
committed by Grimes
parent f55103498f
commit f0dc10c67b

View File

@ -115,10 +115,10 @@ impl LocalCluster {
} }
} }
pub fn close(&mut self) { fn close(&mut self) {
self.close_preserve_ledgers(); self.close_preserve_ledgers();
for path in &self.ledger_paths { for path in &self.ledger_paths {
remove_dir_all(path).unwrap(); remove_dir_all(path).unwrap_or_else(|_| panic!("Unable to remove {}", path));
} }
} }