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

Crate doesn't build after cargo update: E0277 #72

Closed
johanhelsing opened this issue Mar 31, 2024 · 2 comments
Closed

Crate doesn't build after cargo update: E0277 #72

johanhelsing opened this issue Mar 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@johanhelsing
Copy link
Contributor

johanhelsing commented Mar 31, 2024

To Reproduce

git clone https://github.com/gschup/ggrs
cargo check
ggrs main cargo check
    Checking ggrs v0.10.1 (J:\dev\ggrs)
error[E0277]: the size for values of type `dyn StdError + Send + Sync` cannot be known at compilation time
  --> src\network\compression.rs:37:41
   |
37 |     let buf = bitfield_rle::decode(data)?;
   |                                         ^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `dyn StdError + Send + Sync`, which is required by `Result<Vec<Vec<u8>>, Box<dyn StdError>>: FromResidual<Result<Infallible, Box<dyn StdError + Send + Sync>>>`
   = help: the following other types implement trait `FromResidual<R>`:
             <Result<T, F> as FromResidual<Yeet<E>>>
             <Result<T, F> as FromResidual<Result<Infallible, E>>>
   = note: required for `Box<dyn StdError + Send + Sync>` to implement `StdError`
   = note: required for `Box<dyn StdError>` to implement `From<Box<dyn StdError + Send + Sync>>`
   = note: required for `Result<Vec<Vec<u8>>, Box<dyn StdError>>` to implement `FromResidual<Result<Infallible, Box<dyn StdError + Send + Sync>>>`

For more information about this error, try `rustc --explain E0277`.

Expected behavior
No errors

Desktop (please complete the following information):

@johanhelsing johanhelsing added the bug Something isn't working label Mar 31, 2024
@MaxCWhitehead
Copy link
Contributor

MaxCWhitehead commented Mar 31, 2024

@johanhelsing This PR should resolve the issue (though perhaps PR should be updated to also pin bitfield-rle version).

#73

@gschup
Copy link
Owner

gschup commented Apr 1, 2024

Fixed!

@gschup gschup closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants