Skip to content

Commit 10f0565

Browse files
pimpinclaude
andcommitted
Suppress dead_code and deprecated warnings in test utilities
Add #[allow(dead_code)] and #[allow(deprecated)] attributes to suppress compiler warnings for utility functions and deprecated Database methods used in test examples. Changes: - Add #[allow(dead_code)] to utils modules (cbs_admin, constants, sgw_admin) - Add #[allow(deprecated)] to create_doc helper function - Utility functions are used across different test examples, so dead_code warnings in one example are expected This keeps test output clean and focused on actual test results. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a1803f0 commit 10f0565

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/tombstone_quick_check.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ fn main() {
7979
println!("=== Quick check complete ===");
8080
}
8181

82+
#[allow(deprecated)]
8283
fn create_doc(db: &mut Database, id: &str, channel: &str) {
8384
let mut doc = Document::new_with_id(id);
8485
doc.set_properties_as_json(

examples/utils/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
#[allow(dead_code)]
12
pub mod cbs_admin;
3+
#[allow(dead_code)]
24
pub mod constants;
5+
#[allow(dead_code)]
36
pub mod sgw_admin;
47

58
// Re-export commonly used functions

0 commit comments

Comments
 (0)