Simplify theming for QRCode widget

This commit is contained in:
Héctor Ramón Jiménez 2024-03-05 21:16:22 +01:00
parent 704ec9cb5c
commit 330a625205
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 48 additions and 84 deletions

View file

@ -396,7 +396,7 @@ where
#[cfg(feature = "qr_code")]
pub fn qr_code<Theme>(data: &crate::qr_code::Data) -> crate::QRCode<'_, Theme>
where
Theme: crate::qr_code::StyleSheet,
Theme: crate::qr_code::Style,
{
crate::QRCode::new(data)
}