mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 13:28:11 +08:00
Update intoiter syntax (#436)
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Keavon Chambers
parent
b605466819
commit
4c74462be0
@@ -119,13 +119,14 @@ impl ToolFsmState {
|
|||||||
|
|
||||||
fn default_tool_options() -> HashMap<ToolType, ToolOptions> {
|
fn default_tool_options() -> HashMap<ToolType, ToolOptions> {
|
||||||
let tool_init = |tool: ToolType| (tool, tool.default_options());
|
let tool_init = |tool: ToolType| (tool, tool.default_options());
|
||||||
std::array::IntoIter::new([
|
[
|
||||||
tool_init(ToolType::Select),
|
tool_init(ToolType::Select),
|
||||||
tool_init(ToolType::Pen),
|
tool_init(ToolType::Pen),
|
||||||
tool_init(ToolType::Line),
|
tool_init(ToolType::Line),
|
||||||
tool_init(ToolType::Ellipse),
|
tool_init(ToolType::Ellipse),
|
||||||
tool_init(ToolType::Shape), // TODO: Add more tool defaults
|
tool_init(ToolType::Shape), // TODO: Add more tool defaults
|
||||||
])
|
]
|
||||||
|
.into_iter()
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user