Update SelectView::item to take Into<StyledString>

This commit is contained in:
Alexandre Bury 2019-10-04 12:25:04 -07:00
parent ae7a0090ff
commit e6b44d62df

View File

@ -323,7 +323,7 @@ impl<T: 'static> SelectView<T> {
}
/// Chainable variant of add_item
pub fn item<S: Into<String>>(self, label: S, value: T) -> Self {
pub fn item<S: Into<StyledString>>(self, label: S, value: T) -> Self {
self.with(|s| s.add_item(label, value))
}