Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

panics if Rut starts with 00 #8

@jfgodoy

Description

@jfgodoy

Hola Erik!
Primero que todo, muchas gracias por el tiempo dedicado a esta librería.

Detecté, que la librería tira un panic si el Rut parte con 00:

use rut_lib::Rut;

fn main() {
    let stringifier_rut = "00951585-7";

    match Rut::from(stringifier_rut) {
        Ok(rut) => {
            println!("RUT: {:#}", rut)
        }
        Err(error) => println!("Error: {:#}", error),
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions