fn update_used(anchor: &TarsAnchor, anchor_decrease_used: u64, anchor_increase_used: u64) {
        WorkReports::mutate_exists(anchor, |maybe_wr| match *maybe_wr {
            Some(WorkReport { ref mut used, .. }) => *used = used.saturating_sub(anchor_decrease_used).saturating_add(anchor_increase_used),
            ref mut i => *i = None,
        });
    }
/// update the used value due to deleted files, dump trash or calculate_payout
update the used value due to deleted files, dump trash or calculate_payout
update the used value due to deleted files dump trash or calculate_payout
fn update_used(anchor: &TarsAnchor, anchor_decrease_used: u64, anchor_increase_used: u64) {
        WorkReports::mutate_exists(anchor, |maybe_wr| match *maybe_wr {
            Some(WorkReport { ref mut used, .. }) => *used = used.saturating_sub(anchor_decrease_used).saturating_add(anchor_increase_used),
            ref mut i => *i = None,
        });
    }
fn update_used ( anchor : & TarsAnchor , anchor_decrease_used : u64 , anchor_increase_used : u64 ) { WorkReports :: mutate_exists ( anchor , | maybe_wr | match * maybe_wr { Some ( WorkReport { ref mut used , .. } ) => * used = used . saturating_sub ( anchor_decrease_used ) . saturating_add ( anchor_increase_used ) , ref mut i => * i = None , } ) ; }
update the used value due to deleted files, dump trash or calculate_payout
update the used value due to deleted files dump trash or calculate_payout
anchor
&TarsAnchor
anchor_decrease_used
u64
anchor_increase_used
u64