Skip to content

Fix multiple import error #356

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

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

mox692
Copy link
Contributor

@mox692 mox692 commented Sep 16, 2024

I got the following compile error in samply-symbols.

error[E0252]: the name `AsBytes` is defined multiple times
  --> /home/motoyuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/samply-symbols-0.23.0/src/breakpad/index.rs:15:23
   |
14 | use zerocopy::{AsBytes, LittleEndian, Ref, U32, U64};
   |                ------- previous import of the macro `AsBytes` here
15 | use zerocopy_derive::{AsBytes, FromBytes, FromZeroes, Unaligned};
   |                       ^^^^^^^--
   |                       |
   |                       `AsBytes` reimported here
   |                       help: remove unnecessary import
   |
   = note: `AsBytes` must be defined only once in the macro namespace of this module
@mstange
Copy link
Owner

mstange commented Sep 26, 2024

Thank you!

@mstange mstange merged commit 3e0b563 into mstange:main Sep 26, 2024
15 checks passed
@mox692 mox692 deleted the fix-samply-symbols-compile-error branch September 27, 2024 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants