mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-13 20:53:07 +00:00
Fix clippy warnings
This commit is contained in:
parent
1ba2febe21
commit
8fded82434
@ -44,6 +44,8 @@ pub struct Dialog {
|
||||
align: Align,
|
||||
}
|
||||
|
||||
new_default!(Dialog);
|
||||
|
||||
impl Dialog {
|
||||
/// Creates a new `Dialog` with empty content.
|
||||
///
|
||||
|
@ -50,8 +50,7 @@ impl<T> RadioGroup<T> {
|
||||
-> RadioButton<T> {
|
||||
let count = self.state.borrow().values.len();
|
||||
self.state.borrow_mut().values.push(Rc::new(value));
|
||||
let result = RadioButton::new(self.state.clone(), count, label.into());
|
||||
result
|
||||
RadioButton::new(self.state.clone(), count, label.into())
|
||||
}
|
||||
|
||||
/// Returns the id of the selected button.
|
||||
@ -78,7 +77,7 @@ impl RadioGroup<String> {
|
||||
|
||||
/// 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
|
||||
/// time.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user