mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Adds SelectView::is_empty
Fix clippy warning
This commit is contained in:
parent
a064400b6f
commit
f879305d7f
@ -260,6 +260,11 @@ impl<T: 'static> SelectView<T> {
|
|||||||
self.items.len()
|
self.items.len()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns `true` if this list has no item.
|
||||||
|
pub fn is_empty(&self) -> bool {
|
||||||
|
self.items.is_empty()
|
||||||
|
}
|
||||||
|
|
||||||
fn focus(&self) -> usize {
|
fn focus(&self) -> usize {
|
||||||
self.focus.get()
|
self.focus.get()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user