Radiobutton label is now impl Into<String>

This commit is contained in:
Dmitry Kashitsyn 2020-04-05 10:29:25 +07:00
parent 15f5b93a0d
commit 1a9bfd9e73
No known key found for this signature in database
GPG key ID: 7984C21B77FCB244
2 changed files with 9 additions and 3 deletions

View file

@ -528,9 +528,10 @@ impl<'a> Step {
.push(Language::all().iter().cloned().fold(
Column::new().padding(10).spacing(20),
|choices, language| {
let label: &str = language.into();
choices.push(Radio::new(
language,
language.into(),
label,
selection,
StepMessage::LanguageSelected,
))