Skip to content

libp2p-websocket: build error on async-tls 0.10.2 #1873

Description

@akru

Build log

error[E0277]: the trait bound `TlsConnector: From<Arc<ClientConfig>>` is not satisfied                               [116/1854]
  --> /home/akru/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-websocket-0.26.0/src/tls.rs:73:47                      
   |                                                                                                                           
73 |             client: Arc::new(client_config()).into(),                                                                     
   |                                               ^^^^ the trait `From<Arc<ClientConfig>>` is not implemented for `TlsConnecto
r`                                                                                                                             
   |                                                           
   = help: the following implementations were found:                                                                           
             <TlsConnector as From<Arc<rustls::client::ClientConfig>>>                                     
             <TlsConnector as From<rustls::client::ClientConfig>>                                                              
   = note: required because of the requirements on the impl of `Into<TlsConnector>` for `Arc<ClientConfig>`                    
                                                                                                                               
error[E0277]: the trait bound `TlsConnector: From<Arc<ClientConfig>>` is not satisfied                                         
   --> /home/akru/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-websocket-0.26.0/src/tls.rs:119:43                        |                                                                                                                          
119 |             client: Arc::new(self.client).into(),                                                                        
    |                                           ^^^^ the trait `From<Arc<ClientConfig>>` is not implemented for `TlsConnector` 
    |                                                                                                                          
    = help: the following implementations were found:                                                                          
              <TlsConnector as From<Arc<rustls::client::ClientConfig>>>                                                        
              <TlsConnector as From<rustls::client::ClientConfig>>                                                             
    = note: required because of the requirements on the impl of `Into<TlsConnector>` for `Arc<ClientConfig>`

Description

The packages build fails with async-tls v0.10.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions