mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-09-09 22:46:16 +00:00
Fix and reenable profiling CI action (#2632)
* Reenable profiling ci action * Remove deprecated iai feature flag * Remove unused import --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
ebf351277d
commit
7a2144e31e
5 changed files with 21 additions and 16 deletions
|
@ -4,7 +4,8 @@ use crate::proto::ProtoNetwork;
|
|||
|
||||
pub fn load_network(document_string: &str) -> NodeNetwork {
|
||||
let document: serde_json::Value = serde_json::from_str(document_string).expect("Failed to parse document");
|
||||
serde_json::from_value::<NodeNetwork>(document["network_interface"]["network"].clone()).expect("Failed to parse document")
|
||||
let document = (document["network_interface"]["network"].clone()).to_string();
|
||||
serde_json::from_str::<NodeNetwork>(&document).expect("Failed to parse document")
|
||||
}
|
||||
|
||||
pub fn compile(network: NodeNetwork) -> ProtoNetwork {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue