Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created December 14, 2019 15:24
Show Gist options
  • Save hpk42/08e34c3b91899bcc457f3da95a8a1503 to your computer and use it in GitHub Desktop.
Save hpk42/08e34c3b91899bcc457f3da95a8a1503 to your computer and use it in GitHub Desktop.
Compiling async-imap v0.1.1 (https://github.com/async-email/async-imap?branch=native_tls#3dc3681a)
error[E0053]: method `decode` has an incompatible type for trait
--> /home/holger/.cargo/git/checkouts/async-imap-d663ba60b0093518/3dc3681/src/codec.rs:29:5
|
29 | fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>, io::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `bytes::bytes_mut::BytesMut`, found struct `bytes::bytes::BytesMut`
|
= note: expected type `fn(&mut codec::ImapCodec, &mut bytes::bytes_mut::BytesMut) -> std::result::Result<std::option::Option<codec::ResponseData>, std::io::Error>`
found type `fn(&mut codec::ImapCodec, &mut bytes::bytes::BytesMut) -> std::result::Result<std::option::Option<codec::ResponseData>, std::io::Error>`
error[E0053]: method `encode` has an incompatible type for trait
--> /home/holger/.cargo/git/checkouts/async-imap-d663ba60b0093518/3dc3681/src/codec.rs:66:5
|
66 | fn encode(&mut self, msg: Self::Item, dst: &mut BytesMut) -> Result<(), io::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `bytes::bytes_mut::BytesMut`, found struct `bytes::bytes::BytesMut`
|
= note: expected type `fn(&mut codec::ImapCodec, codec::Request, &mut bytes::bytes_mut::BytesMut) -> std::result::Result<(), std::io::Error>`
found type `fn(&mut codec::ImapCodec, codec::Request, &mut bytes::bytes::BytesMut) -> std::result::Result<(), std::io::Error>`
error: aborting due to 2 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment