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

encoding_rs::Encoding::decode not found #8

Closed
Yesterday17 opened this issue Nov 5, 2021 · 0 comments
Closed

encoding_rs::Encoding::decode not found #8

Yesterday17 opened this issue Nov 5, 2021 · 0 comments

Comments

@Yesterday17
Copy link

error[E0599]: no method named `decode` found for reference `&'static encoding_rs::Encoding` in the current scope
   |
99 |     let (result, encoding, _) = detector.guess(None, true).decode(input);
   |                                                            ^^^^^^ method not found in `&'static encoding_rs::Encoding`

As default features are disabled, the feature alloc introduced in encoding_rs v0.8.29 was disabled, which made methods like decode unavailable.

As a workaround I can add encoding_rs = "=0.8.28" in my Cargo.toml, but a fix on this crate is necessary.

Related issue: hsivonen/encoding_rs#73

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