[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:
Colin
2021-02-24 13:00:18 -05:00
committed by GitHub
parent 8cccdfba53
commit c0be1cb7a5
3 changed files with 5 additions and 3 deletions

View File

@@ -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
}