Skip to content

Commit 573468d

Browse files
0HyperCubeKeavon
andauthored
Update intoiter syntax (#436)
Co-authored-by: Keavon Chambers <[email protected]>
1 parent eac9999 commit 573468d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

editor/src/tool/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,14 @@ impl ToolFsmState {
119119

120120
fn default_tool_options() -> HashMap<ToolType, ToolOptions> {
121121
let tool_init = |tool: ToolType| (tool, tool.default_options());
122-
std::array::IntoIter::new([
122+
[
123123
tool_init(ToolType::Select),
124124
tool_init(ToolType::Pen),
125125
tool_init(ToolType::Line),
126126
tool_init(ToolType::Ellipse),
127127
tool_init(ToolType::Shape), // TODO: Add more tool defaults
128-
])
128+
]
129+
.into_iter()
129130
.collect()
130131
}
131132

0 commit comments

Comments
 (0)