fn build_script_override_fingerprint<'a, 'cfg>(
    cx: &mut Context<'a, 'cfg>,
    unit: &Unit<'a>,
) -> Option<LocalFingerprint> {
    let state = cx.build_state.outputs.lock().unwrap();
    state
        .get(&(unit.pkg.package_id(), unit.kind))
        .map(|output| {
            let s = format!(
                "overridden build state with hash: {}",
                util::hash_u64(output)
            );
            LocalFingerprint::Precalculated(s)
        })
}
/// Create a local fingerprint for an overridden build script.
/// Returns None if it is not overridden.
Create a local fingerprint for an overridden build script.
Returns None if it is not overridden.
Create a local fingerprint for an overridden build script . Returns None if it is not overridden .
fn build_script_override_fingerprint<'a, 'cfg>(
    cx: &mut Context<'a, 'cfg>,
    unit: &Unit<'a>,
) -> Option<LocalFingerprint> {
    let state = cx.build_state.outputs.lock().unwrap();
    state
        .get(&(unit.pkg.package_id(), unit.kind))
        .map(|output| {
            let s = format!(
                "overridden build state with hash: {}",
                util::hash_u64(output)
            );
            LocalFingerprint::Precalculated(s)
        })
}
fn build_script_override_fingerprint < ' a , ' cfg > ( cx : & mut Context < ' a , ' cfg > , unit : & Unit < ' a > , ) -> Option < LocalFingerprint > { let state = cx . build_state . outputs . lock ( ) . unwrap ( ) ; state . get ( & ( unit . pkg . package_id ( ) , unit . kind ) ) . map ( | output | { let s = format ! ( " " util hash_u64 ( output ) ) ; LocalFingerprint :: Precalculated ( s ) } ) }
Create a local fingerprint for an overridden build script.
Create a local fingerprint for an overridden build script .
cx
&mut Context<'a, 'cfg>
unit
&Unit<'a>
cx
&mut Context<'a, 'cfg>
unit
&Unit<'a>