We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac9999 commit 573468dCopy full SHA for 573468d
editor/src/tool/mod.rs
@@ -119,13 +119,14 @@ impl ToolFsmState {
119
120
fn default_tool_options() -> HashMap<ToolType, ToolOptions> {
121
let tool_init = |tool: ToolType| (tool, tool.default_options());
122
- std::array::IntoIter::new([
+ [
123
tool_init(ToolType::Select),
124
tool_init(ToolType::Pen),
125
tool_init(ToolType::Line),
126
tool_init(ToolType::Ellipse),
127
tool_init(ToolType::Shape), // TODO: Add more tool defaults
128
- ])
+ ]
129
+ .into_iter()
130
.collect()
131
}
132
0 commit comments