Skip to content

Commit

Permalink
Use more conscise debug write
Browse files Browse the repository at this point in the history
Co-authored-by: Ruben De Smet <[email protected]>
  • Loading branch information
direc85 and rubdos authored Feb 23, 2024
1 parent f4798d9 commit 1656722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qttypes/src/qtcore/qvariant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ impl fmt::Debug for QVariant {
let data = self.to_qstring().to_string();
let qtype = self.type_name().to_string();
if data.len() == 0 {
f.write_fmt(format_args!("QVariant({})", qtype.as_str()))
write!(f, "QVariant({})", qtype.as_str())
} else {
f.write_fmt(format_args!("QVariant({}: \"{}\")", qtype.as_str(), data.as_str()))
write!(f, "QVariant({}: \"{}\")", qtype.as_str(), data.as_str())
}
}
}
Expand Down

0 comments on commit 1656722

Please sign in to comment.