Relax borrow stack lifetimes (#823)

Relax lifetimes for borrow_stack
This commit is contained in:
TrueDoctor
2022-10-26 00:35:30 +02:00
committed by GitHub
parent 097899611f
commit 2873c8fb00
7 changed files with 67 additions and 62 deletions

View File

@@ -111,8 +111,8 @@ 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, PhantomData);
let file: ComposeNode<_, _, P> = fs.then(FileNode(PhantomData));
let fs = ConsNode::new(fs);
let file = fs.then(FileNode(PhantomData));
file.then(FlatMapResultNode::new(BufferNode))
}