allow non_snake_case for new rust lint behavior
replace deprecated get_ref call