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> {
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 ) {
You can’t perform that action at this time.
0 commit comments