mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-08 18:30:40 +00:00
Update SelectView::item to take Into<StyledString>
This commit is contained in:
parent
ae7a0090ff
commit
e6b44d62df
@ -323,7 +323,7 @@ impl<T: 'static> SelectView<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Chainable variant of add_item
|
/// 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))
|
self.with(|s| s.add_item(label, value))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user