Update intoiter syntax (#436)

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube 2021-12-28 13:10:22 +00:00 committed by Keavon Chambers
parent b605466819
commit 4c74462be0
1 changed files with 3 additions and 2 deletions

View File

@ -119,13 +119,14 @@ impl ToolFsmState {
fn default_tool_options() -> HashMap<ToolType, ToolOptions> {
let tool_init = |tool: ToolType| (tool, tool.default_options());
std::array::IntoIter::new([
[
tool_init(ToolType::Select),
tool_init(ToolType::Pen),
tool_init(ToolType::Line),
tool_init(ToolType::Ellipse),
tool_init(ToolType::Shape), // TODO: Add more tool defaults
])
]
.into_iter()
.collect()
}