Skip to content

Instantly share code, notes, and snippets.

@Voker57
Created August 20, 2019 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Voker57/642ad386975743cf30936726268009c9 to your computer and use it in GitHub Desktop.
Save Voker57/642ad386975743cf30936726268009c9 to your computer and use it in GitHub Desktop.
cryptic serde error
error[E0308]: mismatched types
--> src/universe.rs:69:32
|
69 | #[derive(PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^^^ expected struct `universe::Empire`, found struct `universe::_IMPL_DESERIALIZE_FOR_Empire::<impl universe::_IMPL_DESERIALIZE_FOR_UniverseLocation::_serde::Deserialize<'de> for universe::Empire>::deserialize::__Visitor`
|
= note: expected type `storage::ID<universe::Empire>`
found type `storage::ID<universe::_IMPL_DESERIALIZE_FOR_Empire::<impl universe::_IMPL_DESERIALIZE_FOR_UniverseLocation::_serde::Deserialize<'de> for universe::Empire>::deserialize::__Visitor<'_>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment