File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " docxtools"
3- version = " 0.9.1 -SNAPSHOT"
3+ version = " 0.10.0 -SNAPSHOT"
44edition = " 2021"
55authors = [
" David Bosschaert <[email protected] >" ]
66license = " Apache-2.0"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub struct ZipUtil {
1010}
1111
1212impl ZipUtil {
13- pub fn read_zip (
13+ pub fn read_zip (
1414 zip_file : & str ,
1515 dest_dir : & str
1616 ) -> zip:: result:: ZipResult < ( ) > {
@@ -157,9 +157,9 @@ mod tests {
157157
158158 fn normalize_path ( s : & str ) -> String {
159159 let src_char = if MAIN_SEPARATOR == '/' {
160- "\\ "
161- } else {
162- "/"
160+ "\\ "
161+ } else {
162+ "/"
163163 } ;
164164
165165 s. replace ( src_char, MAIN_SEPARATOR_STR )
@@ -179,9 +179,6 @@ mod tests {
179179 . filter ( |e| e. contains ( '.' ) )
180180 . collect ( ) ;
181181
182- println ! ( "Extracts: {:?}" , extracts) ;
183- println ! ( "Separator: {}" , MAIN_SEPARATOR_STR ) ;
184-
185182 assert ! ( extracts. contains( & "foo.test.txt" . into( ) ) ) ;
186183 assert ! ( extracts. contains( & "empty.file" . into( ) ) ) ;
187184 assert ! ( extracts. contains( & normalize_path( "sub/sub/[Content_Types].xml" ) ) ) ;
You can’t perform that action at this time.
0 commit comments