Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan committed Jul 2, 2024
1 parent 9df1312 commit 7e37308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connector/codec/tests/integration_tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ impl<'a> std::fmt::Debug for DataTypeTestDisplay<'a> {
// since this is for tests, we don't care about perf here :)
if !f.alternate() || s.len() == 1 {
let (name, ty) = s.iter().next().unwrap();
return write!(f, "Struct {{ {}: {:?} }}", name, &DataTypeTestDisplay(&ty));
return write!(f, "Struct {{ {}: {:?} }}", name, &DataTypeTestDisplay(ty));
}

let mut f = f.debug_struct("Struct");
for (name, ty) in s.iter() {
f.field(name, &DataTypeTestDisplay(&ty));
f.field(name, &DataTypeTestDisplay(ty));
}
f.finish()?;
Ok(())
}
DataType::List(t) => f
.debug_tuple("List")
.field(&DataTypeTestDisplay(&t))
.field(&DataTypeTestDisplay(t))
.finish(),
_ => {
// do not use alternative display for simple types
Expand Down

0 comments on commit 7e37308

Please sign in to comment.