diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-08-06 10:07:26 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-08-06 10:07:26 +0200 |
commit | 01ee30537ea732edc7886cd5fbdc30f1ab6c13f9 (patch) | |
tree | b31145337b7c24465b9ee7cb84a2086939d5cb46 /imag-todo | |
parent | 98a8356150f1525a133b31d5085f6245c5fd3cf7 (diff) |
Add note why we stdin.lock() here
Diffstat (limited to 'imag-todo')
-rw-r--r-- | imag-todo/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imag-todo/src/main.rs b/imag-todo/src/main.rs index ecf127eb..cde1268d 100644 --- a/imag-todo/src/main.rs +++ b/imag-todo/src/main.rs @@ -47,7 +47,7 @@ fn tw_hook(rt: &Runtime) { let subcmd = rt.cli().subcommand_matches("tw-hook").unwrap(); if subcmd.is_present("add") { let stdin = stdin(); - let stdin = stdin.lock(); + let stdin = stdin.lock(); // implements BufRead which is required for `Task::import()` match Task::import(rt.store(), stdin) { Ok((_, uuid)) => info!("Task {} stored in imag", uuid), |