https://pantsbuild.org/ logo
a

average-vr-56795

10/30/2017, 5:48 PM
Copy code
fs::Stat::Link(fs::Link(path)) => { return futures::future::err::<(Vec<bazel_protos::remote_execution::DirectoryNode>, Vec<bazel_protos::remote_execution::FileNode>), String>(format!("Don't yet know how to handle symlinks: {:?}", path)).to_boxed() },
still gives me
Copy code
error[E0308]: mismatched types
   --> src/main.rs:186:7
    |
186 |       dir_future.join(file_future).to_boxed()
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `futures::FutureResult`, found struct `futures::Join`
    |
    = note: expected type `std::boxed::Box<futures::FutureResult<(std::vec::Vec<bazel_protos::remote_execution::DirectoryNode>, std::vec::Vec<bazel_protos::remote_execution::FileNode>), std::string::String>>`
               found type `std::boxed::Box<futures::Join<futures::JoinAll<std::iter::Map<std::vec::IntoIter<std::path::PathBuf>, [closure@src/main.rs:149:54: 159:8 root_for_dirs:_, store1:_, posix_fs1:_]>>, futures::JoinAll<std::iter::Map<std::vec::IntoIter<std::path::PathBuf>, [closure@src/main.rs:161:56: 184:8 root_relative_to_posixfs:_, store:_, posix_fs:_]>>>>`