Fix misleading function name
This commit is contained in:
parent
879fa3fb48
commit
a8bb444f1d
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ fn tw_hook(rt: &Runtime) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let uuid = *ttask.uuid();
|
let uuid = *ttask.uuid();
|
||||||
match ttask.into_filelockentry(rt.store()) {
|
match ttask.into_task(rt.store()) {
|
||||||
Ok(val) => {
|
Ok(val) => {
|
||||||
println!("Task {} stored in imag", uuid);
|
println!("Task {} stored in imag", uuid);
|
||||||
val
|
val
|
||||||
|
|
|
@ -77,13 +77,13 @@ pub trait IntoTask<'a> {
|
||||||
/// println!("Task with uuid: {}", task.flentry.get_header().get("todo.uuid"));
|
/// println!("Task with uuid: {}", task.flentry.get_header().get("todo.uuid"));
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
fn into_filelockentry(self, store : &'a Store) -> Result<Task<'a>>;
|
fn into_task(self, store : &'a Store) -> Result<Task<'a>>;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> IntoTask<'a> for TTask {
|
impl<'a> IntoTask<'a> for TTask {
|
||||||
|
|
||||||
fn into_filelockentry(self, store : &'a Store) -> Result<Task<'a>> {
|
fn into_task(self, store : &'a Store) -> Result<Task<'a>> {
|
||||||
let uuid = self.uuid();
|
let uuid = self.uuid();
|
||||||
let store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid();
|
let store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue