mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Clean up imports and warnings in Rust code
This commit is contained in:
parent
b030a1860b
commit
bf1a3e3daf
15 changed files with 204 additions and 191 deletions
|
@ -198,7 +198,8 @@ where
|
|||
}
|
||||
}*/
|
||||
|
||||
use graphene_core::{ops::dynamic::Dynamic, AsRefNode};
|
||||
use graphene_core::ops::dynamic::Dynamic;
|
||||
use graphene_core::AsRefNode;
|
||||
pub struct BoxedComposition<'a, Second> {
|
||||
pub first: Box<dyn Node<(), Output = Dynamic<'a>>>,
|
||||
pub second: Second,
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
use graph_craft::document::*;
|
||||
use graph_craft::proto::*;
|
||||
use graphene_core::raster::Image;
|
||||
use graphene_core::value::ValueNode;
|
||||
use graphene_core::Node;
|
||||
|
||||
use bytemuck::Pod;
|
||||
use core::marker::PhantomData;
|
||||
use dyn_any::StaticTypeSized;
|
||||
use graph_craft::document::*;
|
||||
use graph_craft::proto::*;
|
||||
use graphene_core::{raster::Image, value::ValueNode, Node};
|
||||
|
||||
pub struct MapGpuNode<NN: Node<()>, I: IntoIterator<Item = S>, S: StaticTypeSized + Sync + Send + Pod, O: StaticTypeSized + Sync + Send + Pod>(pub NN, PhantomData<(S, I, O)>);
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
use core::marker::PhantomData;
|
||||
use dyn_any::{DynAny, StaticType};
|
||||
use graphene_core::ops::FlatMapResultNode;
|
||||
use graphene_core::generic::FnNode;
|
||||
use graphene_core::ops::{FlatMapResultNode, MapResultNode};
|
||||
use graphene_core::raster::{Color, Image};
|
||||
use graphene_core::structural::{ComposeNode, ConsNode};
|
||||
use graphene_core::{generic::FnNode, ops::MapResultNode, structural::Then, value::ValueNode, Node};
|
||||
use graphene_core::structural::{ComposeNode, ConsNode, Then};
|
||||
use graphene_core::value::ValueNode;
|
||||
use graphene_core::Node;
|
||||
use image::Pixel;
|
||||
use std::path::Path;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue