Impl Task::retrieve_from_import()

This commit is contained in:
Matthias Beyer 2016-07-15 15:42:02 +02:00
parent 077471f3da
commit 8e4471cc07

View file

@ -83,7 +83,9 @@ impl<'a> Task<'a> {
/// Same as Task::get_from_import() but uses Store::retrieve() rather than Store::get(), to
/// implicitely create the task if it does not exist.
pub fn retrieve_from_import<R: BufRead>(store: &'a Store, mut r: R) -> Result<Task<'a>> {
unimplemented!()
let mut line = String::new();
r.read_line(&mut line);
Task::retrieve_from_string(store, line)
}
/// Retrieve a task from a String. The String is expected to contain the JSON-representation of