mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 19:26:09 +00:00
Fix clippy warnings
This commit is contained in:
parent
1ba2febe21
commit
8fded82434
@ -44,6 +44,8 @@ pub struct Dialog {
|
|||||||
align: Align,
|
align: Align,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new_default!(Dialog);
|
||||||
|
|
||||||
impl Dialog {
|
impl Dialog {
|
||||||
/// Creates a new `Dialog` with empty content.
|
/// Creates a new `Dialog` with empty content.
|
||||||
///
|
///
|
||||||
|
@ -50,8 +50,7 @@ impl<T> RadioGroup<T> {
|
|||||||
-> RadioButton<T> {
|
-> RadioButton<T> {
|
||||||
let count = self.state.borrow().values.len();
|
let count = self.state.borrow().values.len();
|
||||||
self.state.borrow_mut().values.push(Rc::new(value));
|
self.state.borrow_mut().values.push(Rc::new(value));
|
||||||
let result = RadioButton::new(self.state.clone(), count, label.into());
|
RadioButton::new(self.state.clone(), count, label.into())
|
||||||
result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the id of the selected button.
|
/// Returns the id of the selected button.
|
||||||
@ -78,7 +77,7 @@ impl RadioGroup<String> {
|
|||||||
|
|
||||||
/// Variant of `Checkbox` arranged in group.
|
/// Variant of `Checkbox` arranged in group.
|
||||||
///
|
///
|
||||||
/// RadioButton are managed by a [`RadioGroup`]. A single group can contain
|
/// `RadioButton`s are managed by a [`RadioGroup`]. A single group can contain
|
||||||
/// several radio buttons, but only one button per group can be active at a
|
/// several radio buttons, but only one button per group can be active at a
|
||||||
/// time.
|
/// time.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user