mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
Rework DynAnyNode design to work with the borrow stack (#796)
This commit is contained in:
@@ -111,7 +111,7 @@ impl<'a> IntoIterator for &'a Image {
|
||||
|
||||
pub fn file_node<'n, P: AsRef<Path> + 'n>() -> impl Node<P, Output = Result<Vec<u8>, Error>> {
|
||||
let fs = ValueNode(StdFs).clone();
|
||||
let fs = ConsNode(fs);
|
||||
let fs = ConsNode(fs, PhantomData);
|
||||
let file: ComposeNode<_, _, P> = fs.then(FileNode(PhantomData));
|
||||
|
||||
file.then(FlatMapResultNode::new(BufferNode))
|
||||
|
||||
Reference in New Issue
Block a user