^^^^^^ style::font::ab_glyph::InvalidFont cannot be formatted using {:?} because it doesn't implement std::fmt::Debug
= help: the trait `std::fmt::Debug` is not implemented for `style::font::ab_glyph::InvalidFont`
note: required by a bound in Result::<T, E>::unwrap
--> /home/rafal/.rustup/toolchains/1.72.1-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1072:12
|
1070 | pub fn unwrap(self) -> T
| ------ required by a bound in this associated function
1071 | where
1072 | E: fmt::Debug,
| ^^^^^^^^^^ required by this bound in Result::<T, E>::unwrap
To Reproduce
ab_glyph
pub fn register_pdf_fonts() { register_font("roboto-regular", FontStyle::Normal, FONT_ROBOTO_REGULAR).unwrap(); }
style::font::ab_glyph::InvalidFont
doesn't implementstd::fmt::Debug
--> src/pdf_creator/init.rs:6:77style::font::ab_glyph::InvalidFont
cannot be formatted using{:?}
because it doesn't implementstd::fmt::Debug
note: required by a bound in
Result::<T, E>::unwrap
--> /home/rafal/.rustup/toolchains/1.72.1-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1072:12 | 1070 | pub fn unwrap(self) -> T | ------ required by a bound in this associated function 1071 | where 1072 | E: fmt::Debug, | ^^^^^^^^^^ required by this bound inResult::<T, E>::unwrap