Skip to content

Commit 4f454b9

Browse files
authored
minor: fix rustdoc failures (#1116)
1 parent 6e4126a commit 4f454b9

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,6 @@ serde_path_to_error = "0.1"
174174
[package.metadata.docs.rs]
175175
rustdoc-args = ["--cfg", "docsrs"]
176176
all-features = true
177+
178+
[lints.rust]
179+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(mongodb_internal_tracking_arc)'] }

src/error/bulk_write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{
99
///
1010
/// If an additional error occurred that was not the result of an individual write failing or a
1111
/// write concern error, it can be retrieved by calling [`source`](core::error::Error::source) on
12-
/// the [`Error`](crate::error::Error) in which this value is stored.
12+
/// the [`Error`](struct@crate::error::Error) in which this value is stored.
1313
#[derive(Clone, Debug, Default)]
1414
#[non_exhaustive]
1515
pub struct BulkWriteError {

src/lib.rs

+6-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
#![warn(rustdoc::missing_crate_level_docs)]
44
#![warn(clippy::cast_possible_truncation)]
55
#![warn(clippy::cast_possible_wrap)]
6-
#![cfg_attr(
7-
feature = "clippy",
8-
allow(
9-
clippy::unreadable_literal,
10-
clippy::cognitive_complexity,
11-
clippy::float_cmp,
12-
clippy::match_like_matches_macro,
13-
clippy::derive_partial_eq_without_eq
14-
)
6+
#![allow(
7+
clippy::unreadable_literal,
8+
clippy::cognitive_complexity,
9+
clippy::float_cmp,
10+
clippy::match_like_matches_macro,
11+
clippy::derive_partial_eq_without_eq
1512
)]
1613
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1714
#![cfg_attr(test, type_length_limit = "80000000")]

0 commit comments

Comments
 (0)