Commit e9755068 authored by Jonas Platte's avatar Jonas Platte

Update to work on latest Nightly

parent 2cb0e442
......@@ -7,7 +7,7 @@ authors = [
]
[dependencies]
gen-iter = "0.1.2"
gen-iter = { git = "https://gitlab.com/detox/gen-iter.git" }
image = "0.18.0"
serde = "1.0.33"
serde_derive = "1.0.33"
......
#![feature(crate_in_paths, generators)]
#![feature(crate_in_paths, generators, pin)]
extern crate gen_iter;
extern crate image;
......
use std::path::PathBuf;
use std::{marker::Unpin, path::PathBuf};
use gen_iter::GenIter;
......@@ -39,7 +39,7 @@ impl PatchNode {
}
}
pub fn into_iter(self) -> Box<Iterator<Item = Patch<PathBuf>>> {
pub fn into_iter(self) -> Box<Iterator<Item = Patch<PathBuf>> + Unpin> {
Box::new(GenIter(move || match self.inner {
PatchNodeInner::Empty => {}
PatchNodeInner::Leaf { name } => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment