Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile example #79

Closed
kper opened this issue Jul 4, 2018 · 2 comments
Closed

Cannot compile example #79

kper opened this issue Jul 4, 2018 · 2 comments

Comments

@kper
Copy link

kper commented Jul 4, 2018

I encountered some troubles when I wanted to implement imap in my project.

error[E0308]: mismatched types
  --> src/server.rs:36:97
   |
36 |         let mut imap_socket = imap::client::Client::secure_connect(socket_addr, &master.domain, &ssl_connector).unwrap();
   |                                                                                                 ^^^^^^^^^^^^^^ expected struct `native_tls::TlsConnector`, found a different struct `native_tls::TlsConnector`
   |
   = note: expected type `&native_tls::TlsConnector` (struct `native_tls::TlsConnector`)
              found type `&native_tls::TlsConnector` (struct `native_tls::TlsConnector`)
note: Perhaps two different versions of crate `native_tls` are being used?

I fixed it by downgrading the native_tls dependency to version 0.1.
So my Cargo.toml looks like this now:

imap = "0.8.1"
native-tls = "0.1"

Maybe you could make the native_tls dependency of imap public.

@jonhoo
Copy link
Collaborator

jonhoo commented Jul 4, 2018

Ah, sorry, this has been fixed in #73, but because of #69 I cannot yet publish a new version of the crate to make that change visible (which would solve your problem) :(

ping @mattnenterprise

@jonhoo
Copy link
Collaborator

jonhoo commented Nov 22, 2018

Fixed in 0.9!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants