Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Re-export used crates #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Re-export used crates #116

wants to merge 1 commit into from

Conversation

luqasz
Copy link
Contributor

@luqasz luqasz commented Nov 14, 2023

Fixes below errors (mismatched crate versions):

  Compiling shared v0.1.0 (/Users/lkostka/workspace/gbot/shared)
error[E0308]: mismatched types
  --> shared/src/lib.rs:39:31
   |
39 |         let out: Vec<u8, 4> = postcard::to_vec(&axis).unwrap();
   |                  ----------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec<u8, 4>`, found `Vec<u8, _>`
   |                  |
   |                  expected due to this
   |
   = note: `heapless::vec::Vec<u8, _>` and `heapless::Vec<u8, 4>` have similar names, but are actually distinct types
note: `heapless::vec::Vec<u8, _>` is defined in crate `heapless`
  --> /Users/lkostka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heapless-0.7.16/src/vec.rs:36:1
   |
36 | pub struct Vec<T, const N: usize> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `heapless::Vec<u8, 4>` is defined in crate `heapless`
  --> /Users/lkostka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heapless-0.8.0/src/vec.rs:32:1
   |
32 | pub struct Vec<T, const N: usize> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `heapless` are being used?

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

Copy link

netlify bot commented Nov 14, 2023

Deploy Preview for cute-starship-2d9c9b canceled.

Name Link
🔨 Latest commit d49ff3c
🔍 Latest deploy log https://app.netlify.com/sites/cute-starship-2d9c9b/deploys/6552c02eaaf90e00085ab3c6

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

Successfully merging this pull request may close these issues.

1 participant