mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 08:48:52 +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:
@@ -71,8 +71,6 @@ impl<B: Buffer> std::fmt::Debug for MapReader<B> {
|
||||
impl<B: Buffer> MapReader<B> {
|
||||
/// Returns the number of key/value pairs are in the map.
|
||||
pub fn len(&self) -> usize {
|
||||
let thing = self.clone();
|
||||
println!("{:?}", &thing);
|
||||
self.length
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user