Skip to content

Commit d56a1d4

Browse files
committed
Don't println! in Drop (see rust-lang/rust#29488)
1 parent e8cec36 commit d56a1d4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

couchbase-lite/src/replicator.rs

-8
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ struct CallContext {
2323
after_pull_ctx: *mut c_void,
2424
}
2525

26-
impl Drop for CallContext {
27-
fn drop(&mut self) {
28-
println!("CallContext.drop()");
29-
// fields are dropped implicitely (I think)
30-
}
31-
}
32-
3326
pub(crate) struct Replicator {
3427
inner: NonNull<C4Replicator>,
3528
c_callback_on_status_changed: C4ReplicatorStatusChangedCallback,
@@ -45,7 +38,6 @@ unsafe impl Send for Replicator {}
4538

4639
impl Drop for Replicator {
4740
fn drop(&mut self) {
48-
println!("Replicator.drop()");
4941
unsafe {
5042
c4repl_free(self.inner.as_ptr());
5143
(self.free_callback_f)(self.callback_context.as_ptr());

0 commit comments

Comments
 (0)