~jshsj/rust_todo

ref: f88eef58a9d1867152e6352ad31cc9e789008292 rust_todo/src/main.rs -rw-r--r-- 390 bytes
f88eef58 — JSH changed vec<Task> to HashMap<String, Task> 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[macro_use]
extern crate failure;

use std::fmt;
use std::io::{BufRead, BufReader, Read, Write};

use serde;
use serde::{Deserialize, Serialize};
extern crate chrono;
use chrono::{DateTime, TimeZone, Utc};

mod tasks;

fn main() {
    let mut task_manager = tasks::TaskManager::new();
    for (name, task) in task_manager.all_tasks().iter() {
        println!("{}{}", name, task);
    }
}