Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mongocrypt/src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ impl Ctx {
}

/// Create a scope guard that provides handles to pending KMS requests.
pub fn kms_scope(&mut self) -> KmsScope {
pub fn kms_scope(&mut self) -> KmsScope<'_> {
KmsScope { ctx: self }
}

Expand Down Expand Up @@ -651,7 +651,7 @@ impl<'ctx> KmsScope<'ctx> {
///
/// If KMS handles are being handled synchronously, the driver can reuse the same
/// TLS socket to send HTTP requests and receive responses.
pub fn next_kms_ctx(&self) -> Option<KmsCtx> {
pub fn next_kms_ctx(&self) -> Option<KmsCtx<'_>> {
let inner = unsafe { sys::mongocrypt_ctx_next_kms_ctx(*self.ctx.inner.borrow()) };
if inner.is_null() {
return None;
Expand Down
9 changes: 9 additions & 0 deletions mongocrypt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,15 @@ impl CryptBuilder {
self
}

/// Enable support for multiple collection schemas. Required to support $lookup.
pub fn enable_multiple_collinfo(self) -> Result<Self> {
let ok = unsafe { sys::mongocrypt_setopt_enable_multiple_collinfo(*self.inner.borrow()) };
if !ok {
return Err(self.status().as_error());
}
Ok(self)
}

/// Opt-into skipping query analysis.
///
/// If opted in:
Expand Down