Skip to content

Commit

Permalink
minor: fix deprecation warnings (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn authored Sep 18, 2023
1 parent c894070 commit 5a13fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/coll/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ use crate::{
mod suppress_warning {
use super::*;

/// These are the valid options for creating a [`Collection`](../struct.Collection.html) with
/// [`Database::collection_with_options`](../struct.Database.html#method.
/// collection_with_options).
/// These are the valid options for creating a [`Collection`](crate::Collection) with
/// [`Database::collection_with_options`](crate::Database::collection_with_options).
#[derive(Clone, Debug, Default, Deserialize, TypedBuilder)]
#[builder(field_defaults(default, setter(into)))]
#[serde(rename_all = "camelCase")]
Expand Down
1 change: 1 addition & 0 deletions src/test/spec/unified_runner/test_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ impl CollectionOrDatabaseOptions {
}
}

#[allow(deprecated)]
pub(crate) fn as_collection_options(&self) -> CollectionOptions {
CollectionOptions {
read_concern: self.read_concern.clone(),
Expand Down

0 comments on commit 5a13fde

Please sign in to comment.