Skip to content

Commit af9f289

Browse files
authored
minor: fix rustdoc lint invocation (#448)
1 parent 5877802 commit af9f289

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.evergreen/check-rustdoc.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
set -o errexit
44

55
. ~/.cargo/env
6-
cargo +nightly rustdoc -p bson --all-features -- --cfg docsrs -D warnings
6+
cargo rustdoc -- -D warnings
7+
cargo rustdoc --no-default-features --features async-std-runtime -- -D warnings
8+
cargo rustdoc --no-default-features --features sync -- -D warnings

src/client/auth/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ pub enum AuthMechanism {
8282
///
8383
/// Note: Only server versions 4.4+ support AWS authentication. Additionally, the driver only
8484
/// supports AWS authentication with the tokio runtime.
85-
#[cfg(feature = "aws-auth")]
85+
#[cfg(any(feature = "aws-auth", docsrs))]
86+
#[cfg_attr(docsrs, doc(cfg(feature = "aws-auth")))]
8687
MongoDbAws,
8788
}
8889

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
//! # Ok(()) }
116116
//! ```
117117
//!
118-
//! A [`Collection`] can be parameterized with any type that implements the
118+
//! A [`Collection`](struct.Collection.html) can be parameterized with any type that implements the
119119
//! `Serialize` and `Deserialize` traits from the [`serde`](https://serde.rs/) crate,
120120
//! not just `Document`:
121121
//!
@@ -155,8 +155,8 @@
155155
//! ```
156156
//!
157157
//! ### Finding documents in a collection
158-
//! Results from queries are generally returned via [`Cursor`], a struct which streams the results
159-
//! back from the server as requested. The [`Cursor`] type implements the
158+
//! Results from queries are generally returned via [`Cursor`](struct.Cursor.html), a struct which streams
159+
//! the results back from the server as requested. The [`Cursor`](struct.Cursor.html) type implements the
160160
//! [`Stream`](https://docs.rs/futures/latest/futures/stream/trait.Stream.html) trait from
161161
//! the [`futures`](https://crates.io/crates/futures) crate, and in order to access its streaming
162162
//! functionality you need to import at least one of the

0 commit comments

Comments
 (0)