mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 11:04:26 +00:00
[rust] Remove debug code (#6475)
* Remove debug code
This was added for testing in the recent genericize PR for flexbuffer Reader.
* Added alloc tests -> MapReader::{is_empty, index_key, len}
* Added , accessible through Deref to deprecation warning
This commit is contained in:
@@ -306,7 +306,7 @@ impl<B: Buffer> Reader<B> {
|
||||
#[cfg(target_endian = "little")]
|
||||
#[deprecated(
|
||||
since = "0.3.0",
|
||||
note = "This function is unsafe - if this functionality is needed it can be added separately via the `buffer` function."
|
||||
note = "This function is unsafe - if this functionality is needed use `Reader::buffer::align_to`"
|
||||
)]
|
||||
pub fn get_slice<T: ReadLE>(&self) -> Result<&[T], Error> {
|
||||
if self.flexbuffer_type().typed_vector_type() != T::VECTOR_TYPE.typed_vector_type() {
|
||||
|
||||
Reference in New Issue
Block a user