Skip to content

Commit 96a2435

Browse files
committed
lint failures
1 parent 8e91504 commit 96a2435

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ mod tests {
9191
);
9292
std::fs::create_dir_all(std::path::Path::new(&hdt_file_path).parent().unwrap())?;
9393

94-
if let Ok(_) = build_hdt(vec![f.to_string()], &hdt_file_path) {
94+
if build_hdt(vec![f.to_string()], &hdt_file_path).is_ok() {
9595
assert!(std::path::Path::new(&hdt_file_path).exists())
9696
}
9797
}
@@ -132,7 +132,7 @@ mod tests {
132132
);
133133
std::fs::create_dir_all(std::path::Path::new(&hdt_file_path).parent().unwrap())?;
134134

135-
if let Ok(_) = build_hdt(vec![f.to_string()], &hdt_file_path) {
135+
if build_hdt(vec![f.to_string()], &hdt_file_path).is_ok() {
136136
assert!(std::path::Path::new(&hdt_file_path).exists())
137137
}
138138
}
@@ -173,7 +173,7 @@ mod tests {
173173
);
174174
std::fs::create_dir_all(std::path::Path::new(&hdt_file_path).parent().unwrap())?;
175175

176-
if let Ok(_) = build_hdt(vec![f.to_string()], &hdt_file_path) {
176+
if build_hdt(vec![f.to_string()], &hdt_file_path).is_ok() {
177177
assert!(std::path::Path::new(&hdt_file_path).exists())
178178
}
179179
}

0 commit comments

Comments
 (0)