Rust: fix a name conflict when building with "no_std" feature (#7268)

* Fix a name conflict when building with "no_std" feature

* Bump patch version
This commit is contained in:
Bogdan Opanchuk 2022-04-25 10:09:41 -07:00 committed by GitHub
parent c86e6d0e30
commit 76d3cca19c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "flatbuffers"
version = "2.1.1"
version = "2.1.2"
edition = "2018"
authors = ["Robert Winslow <hello@rwinslow.com>", "FlatBuffers Maintainers"]
license = "Apache-2.0"

View File

@ -6,7 +6,8 @@ use crate::follow::Follow;
use crate::{ForwardsUOffset, SOffsetT, SkipSizePrefix, UOffsetT, VOffsetT, Vector, SIZE_UOFFSET};
#[cfg(feature="no_std")]
extern crate thiserror_core2 as thiserror;
use thiserror_core2::Error;
#[cfg(not(feature="no_std"))]
use thiserror::Error;
/// Traces the location of data errors. Not populated for Dos detecting errors.