Skip to content

Instantly share code, notes, and snippets.

@jeromegn
Created November 22, 2019 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromegn/9f5fb90ac209ccc6fe91e5202b92fcdf to your computer and use it in GitHub Desktop.
Save jeromegn/9f5fb90ac209ccc6fe91e5202b92fcdf to your computer and use it in GitHub Desktop.
error[E0308]: mismatched types
--> src/handlers/tcp.rs:159:5
|
159 | tokio::spawn(super::proxy_tcp(
| ^^^^^^^^^^^^ one type is more general than the other
|
= note: expected type `futures_util::future::map::Map<tokio_io::io::shutdown::Shutdown<'_, _>, _>`
found type `futures_util::future::map::Map<tokio_io::io::shutdown::Shutdown<'_, _>, _>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment