diff options
Diffstat (limited to 'rust/examples/pdb-ng/src/symbol_parser.rs')
| -rw-r--r-- | rust/examples/pdb-ng/src/symbol_parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/examples/pdb-ng/src/symbol_parser.rs b/rust/examples/pdb-ng/src/symbol_parser.rs index 7f418747..cefb7dc2 100644 --- a/rust/examples/pdb-ng/src/symbol_parser.rs +++ b/rust/examples/pdb-ng/src/symbol_parser.rs @@ -13,6 +13,7 @@ // limitations under the License. use std::collections::{BTreeMap, HashMap, HashSet}; +use std::mem; use anyhow::{anyhow, Result}; use itertools::Itertools; @@ -513,9 +514,8 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> { } } - let filtered_symbols = self - .indexed_symbols - .drain() + let filtered_symbols = mem::replace(&mut self.indexed_symbols, BTreeMap::new()) + .into_iter() .filter_map(|(idx, sym)| { if final_symbols.contains(&idx) { Some(sym) |
