summaryrefslogtreecommitdiffstats
path: root/libimagtodo
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-07-15 15:34:21 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-07-21 17:14:12 +0200
commit475a73ee5c1034d3c59dc4804ae35c9d431dacc9 (patch)
tree603dc72c8402f66b1f6cd1042a35ac4640e28c16 /libimagtodo
parentab613426c6793b95874e9d715c77be64645c1c74 (diff)
Impl Task::get_from_import()
Diffstat (limited to 'libimagtodo')
-rw-r--r--libimagtodo/src/task.rs4
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