Skip to content

Commit

Permalink
fix logging error (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayko001 authored Jul 18, 2024
1 parent b8df097 commit dbd4774
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ fn body_to_rows(
Ok(result)
}

fn process_data<T, E: std::fmt::Display>(data: Vec<Result<T, E>>) -> Vec<T> {
info!("Data: {}", data);
fn process_data<T: std::fmt::Debug, E: std::fmt::Display + std::fmt::Debug>(
data: Vec<Result<T, E>>,
) -> Vec<T> {
info!("Data: {:?}", data);
data.into_iter()
.filter_map(|item_result| match item_result {
Ok(item) => Some(item),
Expand Down

0 comments on commit dbd4774

Please sign in to comment.