MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / get_old_task

Method get_old_task

src/taskchampion-cpp/src/lib.rs:461–472  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

459 }
460
461 fn get_old_task(&self) -> Vec<ffi::PropValuePair> {
462 match &self.0 {
463 tc::Operation::Delete { old_task, .. } => old_task
464 .iter()
465 .map(|(p, v)| ffi::PropValuePair {
466 prop: p.into(),
467 value: v.into(),
468 })
469 .collect(),
470 _ => panic!("operation is not a delete"),
471 }
472 }
473}
474
475fn new_operations() -> Vec<Operation> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected