Fix misleading function name

This commit is contained in:
Matthias Beyer 2016-07-06 20:14:26 +02:00
parent 879fa3fb48
commit a8bb444f1d
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ fn tw_hook(rt: &Runtime) {
}
let uuid = *ttask.uuid();
match ttask.into_filelockentry(rt.store()) {
match ttask.into_task(rt.store()) {
Ok(val) => {
println!("Task {} stored in imag", uuid);
val

View file

@ -77,13 +77,13 @@ pub trait IntoTask<'a> {
/// 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 {
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 store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid();