fn clean(state: &SharedState) -> Message {
    let mut state = state.lock().unwrap();
    state.clean();

    return create_success_message("All finished tasks have been removed");
}
/// Remove all failed or done tasks from the state
Remove all failed or done tasks from the state
Remove all failed or done tasks from the state
fn clean(state: &SharedState) -> Message {
    let mut state = state.lock().unwrap();
    state.clean();
    return create_success_message("All finished tasks have been removed");
}
fn clean ( state : & SharedState ) -> Message { let mut state = state . lock ( ) . unwrap ( ) ; state . clean ( ) ; return create_success_message ( " " ) ; }
Remove all failed or done tasks from the state
Remove all failed or done tasks from the state
state
&SharedState
state
&SharedState