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

decode_to_string_without_replacement not found #64

Closed
kamiyaa opened this issue Oct 30, 2021 · 1 comment · Fixed by #80
Closed

decode_to_string_without_replacement not found #64

kamiyaa opened this issue Oct 30, 2021 · 1 comment · Fixed by #80

Comments

@kamiyaa
Copy link

kamiyaa commented Oct 30, 2021

I get this error when trying to compile yofi

Running rust-1.54, cargo-1.54

error[E0599]: no method named `decode_to_string_without_replacement` found for struct `Decoder` in the current scope
  --> /home/kamiyaa/.cargo/registry/src/github.com-1ecc6299db9ec823/allsorts_no_std-0.5.2/src/get_name.rs:94:36
   |
94 |         let (res, _read) = decoder.decode_to_string_without_replacement(data, &mut s, true);
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `decode_to_str_without_replacement`
@l4l
Copy link
Owner

l4l commented Oct 30, 2021

Yeah, it's related to breaking change in encoding_rs: hsivonen/encoding_rs#73.

As for current workaround you may downgrade it via explicit version in Cargo.toml:

encoding_rs = "=0.8.28"

@l4l l4l mentioned this issue Jan 30, 2022
@l4l l4l closed this as completed in #80 Jan 30, 2022
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