/// Report the outcome to the user
Report the outcome to the user
Report the outcome to the user
fn report_result<R: Output>(
    result: Result<&Outcome, &CargoMSRVError>,
    config: &Config,
    reporter: &R,
) {
    match result.as_ref() {
        Ok(outcome) => {
            reporter.finish_success(ModeIntent::Verify, Some(outcome.version()));
        }
        Err(CargoMSRVError::SubCommandVerify(Error::VerifyFailed { .. })) => {
            let cmd = config.check_command_string();
            reporter.finish_failure(ModeIntent::Verify, Some(&cmd));
        }
        Err(_) => {}
    };
}
fn report_result < R : Output > ( result : Result < & Outcome , & CargoMSRVError > , config : & Config , reporter : & R , ) { match result . as_ref ( ) { Ok ( outcome ) => { reporter . finish_success ( ModeIntent :: Verify , Some ( outcome . version ( ) ) ) ; } Err ( CargoMSRVError :: SubCommandVerify ( Error :: VerifyFailed { .. } ) ) => { let cmd = config . check_command_string ( ) ; reporter . finish_failure ( ModeIntent :: Verify , Some ( & cmd ) ) ; } Err ( _ ) => { } } ; }
Report the outcome to the user
Report the outcome to the user
result
Result<&Outcome, &CargoMSRVError>
config
&Config
reporter
&R