File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,15 @@ impl<'a> TomlFrobber<'a> {
60
60
fn remove_missing_items ( & mut self , category : & str ) {
61
61
let folder = & ( String :: from ( category) + "s" ) ;
62
62
63
- println ! ( "tables {:?}: {:?}" , category, self . table. get( category) ) ;
64
-
65
63
let _krate = self . krate . to_string ( ) ;
66
64
let dir = self . dir ;
67
65
68
66
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) ;
71
71
}
72
-
73
- println ! ( "tables example: {:?}" , self . table. get( "example" ) ) ;
74
72
}
75
73
76
74
fn remove_workspaces ( & mut self ) {
You can’t perform that action at this time.
0 commit comments