Contract stubs: the preferences row field names its lifetime (pn.C6)

This commit is contained in:
Dylan M. Taylor committed 2026-11-26 04:42:07 -05:00
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())),