Reflow the accessibility test the way rustfmt wants it
The author could not run cargo; this is the formatter's first pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -57,12 +57,20 @@ const PROMISES: &[Promise] = &[
|
|||||||
Promise {
|
Promise {
|
||||||
file: "widgets.slint",
|
file: "widgets.slint",
|
||||||
component: "Button",
|
component: "Button",
|
||||||
properties: &["accessible-role", "accessible-label", "accessible-action-default"],
|
properties: &[
|
||||||
|
"accessible-role",
|
||||||
|
"accessible-label",
|
||||||
|
"accessible-action-default",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
Promise {
|
Promise {
|
||||||
file: "widgets.slint",
|
file: "widgets.slint",
|
||||||
component: "IconButton",
|
component: "IconButton",
|
||||||
properties: &["accessible-role", "accessible-label", "accessible-action-default"],
|
properties: &[
|
||||||
|
"accessible-role",
|
||||||
|
"accessible-label",
|
||||||
|
"accessible-action-default",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
Promise {
|
Promise {
|
||||||
file: "widgets.slint",
|
file: "widgets.slint",
|
||||||
@@ -144,9 +152,8 @@ fn read(path: &Path) -> String {
|
|||||||
/// file": the point is that a property found for `Button` really is inside
|
/// file": the point is that a property found for `Button` really is inside
|
||||||
/// `Button` and not inside the component below it.
|
/// `Button` and not inside the component below it.
|
||||||
fn component_body<'a>(source: &'a str, name: &str) -> Option<&'a str> {
|
fn component_body<'a>(source: &'a str, name: &str) -> Option<&'a str> {
|
||||||
let header_starts = |line: &str| {
|
let header_starts =
|
||||||
line.starts_with("component ") || line.starts_with("export component ")
|
|line: &str| line.starts_with("component ") || line.starts_with("export component ");
|
||||||
};
|
|
||||||
|
|
||||||
let mut start = None;
|
let mut start = None;
|
||||||
for (offset, line) in line_offsets(source) {
|
for (offset, line) in line_offsets(source) {
|
||||||
|
|||||||
Reference in New Issue
Block a user