Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

tendermint-rs: Fix error for not using inclusive range #326

Merged
merged 1 commit into from
Jul 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tendermint-rs/src/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl FromStr for Timeout {

let units = match s.chars().nth(s.len() - 2) {
Some('m') => "ms",
Some('0'...'9') => "s",
Some('0'..='9') => "s",
_ => Err(err!(ErrorKind::Parse, "invalid units"))?,
};

Expand Down