Impl Task::get_from_import()
This commit is contained in:
parent
ab613426c6
commit
475a73ee5c
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ impl<'a> Task<'a> {
|
||||||
///
|
///
|
||||||
pub fn get_from_import<R: BufRead>(store: &'a Store, mut r: R) -> Result<RResult<Task<'a>, String>>
|
pub fn get_from_import<R: BufRead>(store: &'a Store, mut r: R) -> Result<RResult<Task<'a>, String>>
|
||||||
{
|
{
|
||||||
unimplemented!()
|
let mut line = String::new();
|
||||||
|
r.read_line(&mut line);
|
||||||
|
Task::get_from_string(store, line)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a task from a String. The String is expected to contain the JSON-representation of the
|
/// Get a task from a String. The String is expected to contain the JSON-representation of the
|
||||||
|
|
Loading…
Reference in a new issue