mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Code cleanup and refactoring to enhance consistency (#1695)
- Move message handler payload data into structs - Organize the file structure used by `editor/src/messages/portfolio/document` `/node_graph` and `/graph_operation` - Make derive attributes use `serde::Serialize, serde::Deserialize` consistently instead of `use serde::{Deserialize, Serialize};` imports - Various other code cleanup and refactoring
This commit is contained in:
parent
ed3f7acdd7
commit
0a9bd41be1
134 changed files with 1860 additions and 1865 deletions
|
@ -227,10 +227,10 @@ impl BorrowTree {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use graph_craft::document::value::TaggedValue;
|
||||
|
||||
use super::*;
|
||||
|
||||
use graph_craft::document::value::TaggedValue;
|
||||
|
||||
#[test]
|
||||
fn push_node_sync() {
|
||||
let mut tree = BorrowTree::default();
|
||||
|
|
|
@ -11,7 +11,6 @@ mod tests {
|
|||
#[test]
|
||||
fn execute_add() {
|
||||
use graph_craft::document::*;
|
||||
|
||||
use graph_craft::*;
|
||||
|
||||
fn add_network() -> NodeNetwork {
|
||||
|
@ -82,7 +81,6 @@ mod tests {
|
|||
#[test]
|
||||
fn double_number() {
|
||||
use graph_craft::document::*;
|
||||
|
||||
use graph_craft::*;
|
||||
|
||||
let network = NodeNetwork {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue