Skip to content

Commit

Permalink
Ensure no dbg! makes it to prod
Browse files Browse the repository at this point in the history
Also nuke a couple of dbg!() calls in tests that aren't required.
  • Loading branch information
mpalmer committed Oct 7, 2022
1 parent 08acb85 commit 9221b9c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qc_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ jobs:
# The `-A unused-variables` here is because in-function use of rbself in methods!
# doesn't get picked up, and Clippy chucks a wobbly
run: |
cargo clippy -- -D warnings -A unused-variables
cargo clippy -- -D clippy::dbg_macro -D warnings -A unused-variables
2 changes: 1 addition & 1 deletion .github/workflows/qc_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ jobs:
- name: Consult Clippy
working-directory: rust
run: |
cargo clippy -- -D warnings
cargo clippy -- -D clippy::dbg_macro -D warnings
1 change: 0 additions & 1 deletion rust/src/datatype/date_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ mod tests {

let mut s: Vec<u8> = vec![];
ciborium::ser::into_writer(&serde_value, &mut s).unwrap();
dbg!(&s);
assert!(s.len() < 300, "s.len() == {}", s.len());
}

Expand Down
1 change: 0 additions & 1 deletion rust/src/datatype/i64v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ mod tests {

let mut s: Vec<u8> = vec![];
ciborium::ser::into_writer(&serde_value, &mut s).unwrap();
dbg!(&s);
assert!(s.len() < 600, "s.len() == {}", s.len());
}

Expand Down

0 comments on commit 9221b9c

Please sign in to comment.