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

zero_repeat_side_effects with sgx_quote3_t #448

Open
mythi opened this issue Jul 29, 2024 · 0 comments
Open

zero_repeat_side_effects with sgx_quote3_t #448

mythi opened this issue Jul 29, 2024 · 0 comments
Labels

Comments

@mythi
Copy link
Contributor

mythi commented Jul 29, 2024

Rust 1.79.0 added zero_repeat_side_effects which triggers an error with:

  --> deps/verifier/src/sgx/types.rs:95:17
   |
95 | #[derive(Debug, Pread)]
   |                 ^^^^^ help: consider using: `Pread; let Pread: [u8; 0] = [];`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_repeat_side_effects
   = note: `#[warn(clippy::zero_repeat_side_effects)]` on by default

which seems to be triggered by pub signature_data: [u8; 0], I'm unsure what the right fix should be (it feels to me the Pread macro needs updating since adding #[warn(clippy::zero_repeat_side_effects)] won't help either) so I'll just submit this issue as a reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants