We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e79dd4 commit 9afa290Copy full SHA for 9afa290
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