Skip to content

Commit fc3a553

Browse files
committed
More cleanup
1 parent 147e248 commit fc3a553

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "docxtools"
3-
version = "0.9.1-SNAPSHOT"
3+
version = "0.10.0-SNAPSHOT"
44
edition = "2021"
55
authors = ["David Bosschaert <[email protected]>"]
66
license = "Apache-2.0"

src/zip_util.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct ZipUtil {
1010
}
1111

1212
impl 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")));

0 commit comments

Comments
 (0)