Skip to content

Commit 1dfbba9

Browse files
committed
Clippy fix
1 parent e8efb27 commit 1dfbba9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

kani-driver/src/cbmc_property_renderer.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,14 @@ pub fn kani_cbmc_output_filter(
191191
if let Some(fmt_item) = formatted_item {
192192
if suppress_terminal {
193193
// Write to log file instead of terminal
194-
if let Some(log_path) = log_file {
195-
if let Err(e) = write_to_log_file(log_path, &fmt_item) {
194+
if let Some(log_path) = log_file
195+
&& let Err(e) = write_to_log_file(log_path, &fmt_item) {
196196
eprintln!(
197197
"Failed to write CBMC output to log file {}: {}",
198198
log_path.display(),
199199
e
200200
);
201201
}
202-
}
203202
} else {
204203
// Normal terminal output
205204
println!("{fmt_item}");

0 commit comments

Comments
 (0)