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

#[derive(H5Type)] always produces a compiler warning. #302

Open
ethyssen opened this issue Dec 9, 2024 · 0 comments
Open

#[derive(H5Type)] always produces a compiler warning. #302

ethyssen opened this issue Dec 9, 2024 · 0 comments

Comments

@ethyssen
Copy link

ethyssen commented Dec 9, 2024

use hdf5::H5Type;

#[derive(H5Type)]
#[repr(C)]
pub struct Byte(u8);

^^ This code produces a compiler warning:

warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
 --> src/main.rs:3:10
  |
3 | #[derive(H5Type)]
  |          ^-----
  |          |
  |          `H5Type` is not local
  |          move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Byte`
4 | #[repr(C)]
5 | pub struct Byte(u8);
  |            ---- `Byte` is not local
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