Remove logging large bytes arrays

This commit is contained in:
Cory Forsstrom 2023-02-23 09:31:48 -08:00
parent 666f3cd143
commit 07a7681dba
No known key found for this signature in database
GPG key ID: 1DFE170A4415C9F5
6 changed files with 49 additions and 6 deletions

View file

@ -43,7 +43,7 @@ impl std::fmt::Debug for Settings {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Settings")
// Instead of printing the font bytes, we simply show a `bool` indicating if using a default font or not.
.field("default_font", &self.default_font.is_none())
.field("default_font", &self.default_font.is_some())
.field("default_text_size", &self.default_text_size)
.field("text_multithreading", &self.text_multithreading)
.field("antialiasing", &self.antialiasing)