Skip to content

Commit 404baf6

Browse files
committed
add log info
1 parent a9ef12c commit 404baf6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/runner/toml_frobber.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,15 @@ impl<'a> TomlFrobber<'a> {
6060
fn remove_missing_items(&mut self, category: &str) {
6161
let folder = &(String::from(category) + "s");
6262

63-
println!("tables {:?}: {:?}", category, self.table.get(category));
64-
6563
let _krate = self.krate.to_string();
6664
let dir = self.dir;
6765

6866
if let Some(array) = self.table.get_mut(category) {
69-
*(array) =
70-
toml::Value::Array(Self::test_existance(dir, array.as_array().unwrap(), folder));
67+
let array = array.as_array_mut().unwrap();
68+
let dim = array.len();
69+
*(array) = Self::test_existance(dir, array, folder);
70+
info!("removed {} missing {}", dim - array.len(), folder);
7171
}
72-
73-
println!("tables example: {:?}", self.table.get("example"));
7472
}
7573

7674
fn remove_workspaces(&mut self) {

0 commit comments

Comments
 (0)