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

serde::export::From<std::io::Error> not implemented #4

Closed
kevinw opened this issue Oct 4, 2017 · 0 comments
Closed

serde::export::From<std::io::Error> not implemented #4

kevinw opened this issue Oct 4, 2017 · 0 comments

Comments

@kevinw
Copy link
Contributor

kevinw commented Oct 4, 2017

When building with nightly rust on Windows, I get the following error:

> rustc --version
rustc 1.22.0-nightly (4502e2aa9 2017-10-03)
> cargo build
error[E0277]: the trait bound `errors::Error: serde::export::From<std::io::Error>` is not satisfied
  --> world\src\mapfile.rs:39:5
   |
39 |     write!(output, "{}", MapSave { map, legend })?;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::export::From<std::io::Error>` is not implemented for `errors::Error`
   |
   = help: the following implementations were found:
             <errors::Error as serde::export::From<ron::ser::Error>>
             <errors::Error as serde::export::From<ron::de::Error>>
             <errors::Error as serde::export::From<errors::ErrorKind>>
             <errors::Error as serde::export::From<&'a str>>
             <errors::Error as serde::export::From<std::string::String>>
   = note: required by `serde::export::From::from`

Is this an easy fix? I'm still learning error_chain and Rust in general.

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

1 participant