Skip to content

Panic when generating Micro QR #89

@Nakanishi123

Description

@Nakanishi123

When I try to generate a Micro QR code, the library panics.

Example:

use qrcode::{EcLevel, QrCode, Version};

fn main() {
    let code = QrCode::with_version("123123123123A", Version::Micro(3), EcLevel::M).unwrap();
}
attempt to subtract with overflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions