Skip to content

Commit 8bd6f1d

Browse files
committed
move static to top
1 parent c360722 commit 8bd6f1d

File tree

1 file changed

+42
-39
lines changed

1 file changed

+42
-39
lines changed

frameworks/keyed/dioxus/src/main.rs

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,47 @@ fn main() {
1414
launch(app);
1515
}
1616

17+
18+
19+
static ADJECTIVES: &[&str] = &[
20+
"pretty",
21+
"large",
22+
"big",
23+
"small",
24+
"tall",
25+
"short",
26+
"long",
27+
"handsome",
28+
"plain",
29+
"quaint",
30+
"clean",
31+
"elegant",
32+
"easy",
33+
"angry",
34+
"crazy",
35+
"helpful",
36+
"mushy",
37+
"odd",
38+
"unsightly",
39+
"adorable",
40+
"important",
41+
"inexpensive",
42+
"cheap",
43+
"expensive",
44+
"fancy",
45+
];
46+
47+
static COLOURS: &[&str] = &[
48+
"red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black",
49+
"orange",
50+
];
51+
52+
static NOUNS: &[&str] = &[
53+
"table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger",
54+
"pizza", "mouse", "keyboard",
55+
];
56+
57+
1758
#[derive(PartialEq, Clone, Props)]
1859
struct RowData {
1960
id: usize,
@@ -168,42 +209,4 @@ fn ActionButton(name: String, id: String, onclick: EventHandler) -> Element {
168209
}
169210
}
170211
}
171-
}
172-
173-
static ADJECTIVES: &[&str] = &[
174-
"pretty",
175-
"large",
176-
"big",
177-
"small",
178-
"tall",
179-
"short",
180-
"long",
181-
"handsome",
182-
"plain",
183-
"quaint",
184-
"clean",
185-
"elegant",
186-
"easy",
187-
"angry",
188-
"crazy",
189-
"helpful",
190-
"mushy",
191-
"odd",
192-
"unsightly",
193-
"adorable",
194-
"important",
195-
"inexpensive",
196-
"cheap",
197-
"expensive",
198-
"fancy",
199-
];
200-
201-
static COLOURS: &[&str] = &[
202-
"red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black",
203-
"orange",
204-
];
205-
206-
static NOUNS: &[&str] = &[
207-
"table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger",
208-
"pizza", "mouse", "keyboard",
209-
];
212+
}

0 commit comments

Comments
 (0)