diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-07-15 15:34:21 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-21 17:14:12 +0200 |
commit | 475a73ee5c1034d3c59dc4804ae35c9d431dacc9 (patch) | |
tree | 603dc72c8402f66b1f6cd1042a35ac4640e28c16 /libimagtodo | |
parent | ab613426c6793b95874e9d715c77be64645c1c74 (diff) |
Impl Task::get_from_import()
Diffstat (limited to 'libimagtodo')
-rw-r--r-- | libimagtodo/src/task.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libimagtodo/src/task.rs b/libimagtodo/src/task.rs index ebb76498..36f4a75d 100644 --- a/libimagtodo/src/task.rs +++ b/libimagtodo/src/task.rs @@ -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>> { - 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 |