Skip to content

Commit 6c3465b

Browse files
authored
Remove debugging output from symbol.rs that cannot otherwise be disabled. (#130)
* Remove use of dbg! from symbol.rs. As documented at https://doc.rust-lang.org/std/macro.dbg.html the dbg! macro unconditionally prints its argument to stderr, even in release builds. (It is not possible to quiet it through use of RUST_LOG.) Presumably this was accidentally left in. * Remove unconditional use of println in symbol.rs. This unconditional debugging information probably also was not intended.
1 parent e720fb8 commit 6c3465b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bindings/rust/src/symbol.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ impl SymbolParser {
263263
}
264264

265265
fn accept_character(&mut self, c: char, what: &str) -> Result<char, SymbolError> {
266-
println!("Checking: {} for {}", c, what);
267266
// if self.peek_next().ok_or(SymbolError::InvalidIndex)? == c {
268267
if self.current()? == c {
269268
self.index += 1;
@@ -281,7 +280,7 @@ impl SymbolParser {
281280
fn accept_descriptors(&mut self) -> Result<Vec<Descriptor>, SymbolError> {
282281
let mut v = Vec::new();
283282
while self.index < self.sym.len() {
284-
v.push(dbg!(self.accept_one_descriptor()?))
283+
v.push(self.accept_one_descriptor()?)
285284
}
286285

287286
Ok(v)

0 commit comments

Comments
 (0)