Skip to content

unwraps lead to panic #5

@JosiahParry

Description

@JosiahParry

let mut day_of_week_num = exp.parse::<u8>().unwrap();

let c = get_description_cron("5 0 * * */"); leads to a panic due to the above. I think perhaps rather than infallibly returning String the methods can return Result<String> so that ? can bubble up errors rather than panic.

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