Skip to content

Commit

Permalink
(BIN) NFC s4.rs clippy tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Jun 23, 2024
1 parent cb15fa9 commit b04eb5a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/bin/s4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,12 +882,9 @@ fn cli_process_tz_offset(tzo: &str) -> std::result::Result<FixedOffset, String>
] {
let dt = datetime_parse_from_str_w_tz(data.as_str(), pattern);
defo!("datetime_parse_from_str_w_tz({:?}, {:?}) returned {:?}", data, pattern, dt);
match dt {
Some(dt_) => {
defx!("return {:?}", dt_.offset());
return Ok(*dt_.offset());
}
None => {}
if let Some(dt_) = dt {
defx!("return {:?}", dt_.offset());
return Ok(*dt_.offset());
}
}

Expand Down Expand Up @@ -2012,11 +2009,8 @@ fn exec_syslogprocessor(
break;
}
// try to drop the prior SyslineP (and associated data)
match syslinep_last_opt {
Some(syslinep_last) => {
syslogproc.drop_data_try(&syslinep_last);
}
None => {}
if let Some(syslinep_last) = syslinep_last_opt {
syslogproc.drop_data_try(&syslinep_last);
}
syslinep_last_opt = Some(syslinep_tmp);
}
Expand Down

0 comments on commit b04eb5a

Please sign in to comment.