mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 09:46:29 +01:00
Contract stubs: the preferences row field names its lifetime (pn.C6)
This commit is contained in:
1 parent
ebd3611079
commit
d4dd9b9dcd
1 file changed
+1
-1
@@ -146,7 +146,7 @@ fn help_line(ui: &mut Ui, help: &Option<Label>) {
|
||||
}
|
||||
|
||||
/// The field a row's control stands in: named by the row, with its help.
|
||||
fn field_of(row: &ShownRow) -> Field {
|
||||
fn field_of(row: &ShownRow) -> Field<'_> { // P3(panels-w2): pn.C6
|
||||
let field = Field::new(row.label.clone()).id_salt(row.key.as_str()).enabled(row.enabled);
|
||||
match &row.help {
|
||||
Some(help) => field.help(Help::Text(help.clone())),
|
||||
|
||||
Reference in new issue
Block a user