Skip to content

No Encodable/Decodable implementation for type "char" #5817

New issue

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

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

Already on GitHub? # to your account

Closed
mneumann opened this issue Apr 10, 2013 · 1 comment
Closed

No Encodable/Decodable implementation for type "char" #5817

mneumann opened this issue Apr 10, 2013 · 1 comment

Comments

@mneumann
Copy link
Contributor

In libstd/serialize.rs, the following is missing:

impl<S:Encoder> Encodable<S> for char {
    fn encode(&self, s: &S) { s.emit_char(*self) }
}

impl<D:Decoder> Decodable<D> for char {
    fn decode(d: &D) ⟶  char {
        d.read_char()
    }
}
@alexcrichton
Copy link
Member

Fixed in #6857

flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 17, 2020
Rustup

r? @ghost

Preparation for emergency Clippyup to fix an ICE rust-lang#5816

changelog: none
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants