> On Tue, Nov 03, 2020 at 02:25:21PM +0100, Dietmar Maurer wrote: > > > > - let connections = > > > > proxmox_backup::tools::async_io::HyperAccept(connections); > > > > + let connections = accept_connections(listener, acceptor); > > > > + let connections = > > > > hyper::server::accept::from_stream(connections); > > > > > > If we move the `from_stream` into the function below... > > > > I have tried to do that for 2 hours, then gave up.... > > So please tell m e how to make that work! > > nvm, the required feature is still unstable, we'd need to > > -> impl Accept<Conn: AsyncRead, Error: std::error::Error> > > but trait bounds on associated types in impl returns is unstable... > Link: https://github.com/rust-lang/rust/issues/52662 > > :(
Well, I call this a serious compiler bug ... Anyways, my workaround is a single line of code. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel