• @[email protected]
    link
    fedilink
    English
    1211 months ago
    let bar: Result = ...;
    let foo = bar.inspect(|value| log::debug("{}", value));
    

    is equivalent to

    let bar: Result = ...;
    let foo = bar.map(|value| {
        log::debug("{}", value);
        value
    });