Skip to content

Commit 9fb1f99

Browse files
pimpinclaude
andcommitted
Suppress deprecated warnings in helper functions for purge tests
Add #[allow(deprecated)] to create_doc() and get_doc() helper functions in tombstone purge tests to suppress warnings about deprecated Database methods. These are test utilities that will be updated to use the new collection-based API in a future refactoring, but for now we suppress warnings to keep test output clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 10f0565 commit 9fb1f99

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/tombstone_purge_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ fn main() {
140140
);
141141
}
142142

143+
#[allow(deprecated)]
143144
fn create_doc(db: &mut Database, id: &str, channel: &str) {
144145
let mut doc = Document::new_with_id(id);
145146
doc.set_properties_as_json(
@@ -162,6 +163,7 @@ fn create_doc(db: &mut Database, id: &str, channel: &str) {
162163
);
163164
}
164165

166+
#[allow(deprecated)]
165167
fn get_doc(db: &Database, id: &str) -> Result<Document> {
166168
db.get_document(id)
167169
}

examples/tombstone_purge_test_short.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fn main() {
126126
println!("\n=== Test complete ===");
127127
}
128128

129+
#[allow(deprecated)]
129130
fn create_doc(db: &mut Database, id: &str, channel: &str) {
130131
let mut doc = Document::new_with_id(id);
131132
doc.set_properties_as_json(
@@ -144,6 +145,7 @@ fn create_doc(db: &mut Database, id: &str, channel: &str) {
144145
);
145146
}
146147

148+
#[allow(deprecated)]
147149
fn get_doc(db: &Database, id: &str) -> Result<Document> {
148150
db.get_document(id)
149151
}

0 commit comments

Comments
 (0)