Allow SelectView::with_all to accept StyledString (#385)

This commit is contained in:
panicbit 2019-10-04 21:22:04 +02:00 committed by Alexandre Bury
parent 1404226c33
commit ae7a0090ff

View File

@ -343,7 +343,7 @@ impl<T: 'static> SelectView<T> {
/// Chainable variant.
pub fn with_all<S, I>(self, iter: I) -> Self
where
S: Into<String>,
S: Into<StyledString>,
I: IntoIterator<Item = (S, T)>,
{
self.with(|s| s.add_all(iter))