mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Convert u64 IDs to newtypes (#1532)
This commit is contained in:
@@ -38,7 +38,7 @@ fn main() {
|
||||
fn add_network() -> NodeNetwork {
|
||||
NodeNetwork {
|
||||
inputs: vec![],
|
||||
outputs: vec![NodeOutput::new(0, 0)],
|
||||
outputs: vec![NodeOutput::new(NodeId(0), 0)],
|
||||
disabled: vec![],
|
||||
previous_outputs: None,
|
||||
nodes: [DocumentNode {
|
||||
@@ -66,7 +66,7 @@ fn add_network() -> NodeNetwork {
|
||||
}]
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.map(|(id, node)| (id as NodeId, node))
|
||||
.map(|(id, node)| (NodeId(id as u64), node))
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user