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

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

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
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