refactor/polish ~ fix cargo clippy complaints (allow ptr_arg)

This commit is contained in:
Roy Ivy III 2019-12-29 21:45:08 -06:00
parent b8c0711273
commit 522d3ae1b6

View file

@ -219,6 +219,7 @@ fn maybe_dump_ast(result: &Result<Box<ASTNode>, String>) {
}
}
#[allow(clippy::ptr_arg)]
fn maybe_dump_rpn(rpn: &TokenStack) {
use std::env;
if let Ok(debug_var) = env::var("EXPR_DEBUG_RPN") {
@ -317,6 +318,7 @@ fn push_token_to_either_stack(
result
}
#[allow(clippy::ptr_arg)]
fn maybe_dump_shunting_yard_step(
token_idx: usize,
token: &Token,