Skip to content

Commit

Permalink
bug: remove dbg!() (#292)
Browse files Browse the repository at this point in the history
Closes #287
  • Loading branch information
jrconlin authored Oct 28, 2021
1 parent 2381866 commit 1eca808
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ ignore = [
"RUSTSEC-2021-0078", # Bound by Sentry 0.19 requiring Hyper 0.13
"RUSTSEC-2021-0079", # Bound by Sentry 0.19 requiring Hyper 0.13
"RUSTSEC-2021-0115", # Bound by rusoto 0.45 & fernet 0.1.4 (not a risk)
"RUSTSEC-2020-0159", # Bound by time
"RUSTSEC-2020-0071", # Bound by sentry, cadence, etc.
]
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ jobs:
cargo build
- run:
name: Check formatting
command: cargo fmt -- --check
command: |
cargo fmt -- --check
cargo clippy --all --all-targets --all-features -- -D warnings --deny=clippy::dbg_macro
- run:
name: Integration tests
command: py.test -v
Expand Down
2 changes: 1 addition & 1 deletion autoendpoint/src/extractors/authorization_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl AuthorizationCheck {
sign_with_key(key.as_bytes(), uaid.to_simple().to_string().as_bytes())
.map_err(ApiErrorKind::RegistrationSecretHash)?;

dbg!(&expected_token, &token);
debug!("expected: {:?}, recv'd {:?}", &expected_token, &token);
if expected_token.len() == token.len()
&& openssl::memcmp::eq(expected_token.as_bytes(), token.as_bytes())
{
Expand Down

0 comments on commit 1eca808

Please sign in to comment.