Skip to content

Commit 92b984e

Browse files
authored
minor: fix deprecation warnings (#960) (#961)
1 parent f59cef2 commit 92b984e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/coll/options.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ use crate::{
2121
mod suppress_warning {
2222
use super::*;
2323

24-
/// These are the valid options for creating a [`Collection`](../struct.Collection.html) with
25-
/// [`Database::collection_with_options`](../struct.Database.html#method.
26-
/// collection_with_options).
24+
/// These are the valid options for creating a [`Collection`](crate::Collection) with
25+
/// [`Database::collection_with_options`](crate::Database::collection_with_options).
2726
#[derive(Clone, Debug, Default, Deserialize, TypedBuilder)]
2827
#[builder(field_defaults(default, setter(into)))]
2928
#[serde(rename_all = "camelCase")]

src/test/spec/unified_runner/test_file.rs

+1
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ impl CollectionOrDatabaseOptions {
373373
}
374374
}
375375

376+
#[allow(deprecated)]
376377
pub(crate) fn as_collection_options(&self) -> CollectionOptions {
377378
CollectionOptions {
378379
read_concern: self.read_concern.clone(),

0 commit comments

Comments
 (0)