Skip to content

Commit

Permalink
Add panic message to select_ok
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee authored and cramertj committed Oct 7, 2019
1 parent 1f9c200 commit 8f95de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/try_future/select_ok.rs
Expand Up @@ -35,7 +35,7 @@ pub fn select_ok<I>(iter: I) -> SelectOk<I::Item>
let ret = SelectOk {
inner: iter.into_iter().collect()
};
assert!(!ret.inner.is_empty());
assert!(!ret.inner.is_empty(), "iterator provided to select_ok was empty");
ret
}

Expand Down

0 comments on commit 8f95de5

Please sign in to comment.