diff options
| author | Jokler <jokler.contact@gmail.com> | 2019-07-05 15:17:24 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2019-07-05 15:17:24 +0200 |
| commit | 9adfcd333cbcaa449dda89f53d7a5de602b9bef3 (patch) | |
| tree | df702aab6c0ef0580371452544397f1155724b0b /src | |
| parent | 3592c7b6fb2522ff57c7f312b8927eb680d6dc5c (diff) | |
| download | frippy-9adfcd333cbcaa449dda89f53d7a5de602b9bef3.tar.gz frippy-9adfcd333cbcaa449dda89f53d7a5de602b9bef3.zip | |
Revert "Remind: Fix invalid error when parsing repeat time"
This reverts commit 6ecb061831b251476e55906ad7f42bb8f730e2f7.
The previous code was fine, this introduced a bug instead
of fixing one.
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/remind/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/remind/parser.rs b/src/plugins/remind/parser.rs index 91d13ab..965ad99 100644 --- a/src/plugins/remind/parser.rs +++ b/src/plugins/remind/parser.rs @@ -231,7 +231,7 @@ impl CommandParser { } let dur = parse_duration(&words).context(ErrorKind::InvalidTime)?; - if dur <= min_dur { + if dur < min_dur { return Err(ErrorKind::RepeatTimeShort.into()); } |
