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

[REVM 3.2.0] revm-primitives does not compile #466

Closed
ufoscout opened this issue Apr 20, 2023 · 3 comments · Fixed by #467
Closed

[REVM 3.2.0] revm-primitives does not compile #466

ufoscout opened this issue Apr 20, 2023 · 3 comments · Fixed by #467

Comments

@ufoscout
Copy link
Contributor

ufoscout commented Apr 20, 2023

I upgraded a project from version 3.0.0 to 3.2.0, now the project compilation fails with this error:

error[E0599]: no method named `to_string` found for enum `FromHexError` in the current scope
    --> /home/ufo/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/revm-primitives-1.1.1/src/utilities.rs:59:49
     |
59   |         .map_err(|e| serde::de::Error::custom(e.to_string()))
     |                                                 ^^^^^^^^^ method not found in `FromHexError`
     |
    ::: /home/ufo/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/string.rs:2515:8
     |
2515 |     fn to_string(&self) -> String;
     |        --------- the method is available for `hex::FromHexError` here
     |
     = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
     |
37   |     use crate::alloc::string::ToString;
     |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `revm-primitives` due to previous error
@rakita
Copy link
Member

rakita commented Apr 20, 2023

What features do you have enabled?

@ufoscout
Copy link
Contributor Author

only serde. If I remove that feature, it compiles

@rakita
Copy link
Member

rakita commented Apr 20, 2023

for quick fix, include std, and will make the proper PR to fix it.

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

Successfully merging a pull request may close this issue.

2 participants