server: update tokio

This commit is contained in:
Valentin Tolmer
2023-02-23 15:39:50 +01:00
committed by nitnelave
parent c9997d4c17
commit 07de6062ca
3 changed files with 71 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ version = "*"
[dependencies.tokio]
features = ["full"]
version = "1.17"
version = "1.25"
[dependencies.uuid]
features = ["v3"]

View File

@@ -67,7 +67,7 @@ async fn handle_ldap_stream<Stream, Backend>(
) -> Result<Stream>
where
Backend: BackendHandler + LoginHandler + OpaqueHandler + 'static,
Stream: tokio::io::AsyncRead + tokio::io::AsyncWrite,
Stream: tokio::io::AsyncRead + tokio::io::AsyncWrite + std::marker::Unpin,
{
use tokio_stream::StreamExt;
let (r, w) = tokio::io::split(stream);