• barsoap
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    7 months ago
     .map(|n| n.parse().unwrap_or_else(|_| std::i64::MIN))
    

    *shudder*

    unwrap_or_else and passing a closure that ignores its argument is a definitive smell. Probably gets caught by clippy.