Update intoiter syntax (#436)
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
b605466819
commit
4c74462be0
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue