Invalidate QRCode cache on Appearance change

This commit is contained in:
Héctor Ramón Jiménez 2024-02-09 23:57:11 +01:00
parent 4c6ea3cfe2
commit b535f7ae38
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 69 additions and 53 deletions

View file

@ -2,7 +2,7 @@
use crate::core::Color;
/// The appearance of a QR code.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Appearance {
/// The color of the QR code data cells
pub cell: Color,