From 4f454b9e3a5328be3238e3af212912fa61c76505 Mon Sep 17 00:00:00 2001 From: Abraham Egnor Date: Tue, 4 Jun 2024 12:43:09 -0400 Subject: [PATCH] minor: fix rustdoc failures (#1116) --- Cargo.toml | 3 +++ src/error/bulk_write.rs | 2 +- src/lib.rs | 15 ++++++--------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 049a546c5..0988fbb19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -174,3 +174,6 @@ serde_path_to_error = "0.1" [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] all-features = true + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(mongodb_internal_tracking_arc)'] } diff --git a/src/error/bulk_write.rs b/src/error/bulk_write.rs index 2f735e2ae..aa7386b56 100644 --- a/src/error/bulk_write.rs +++ b/src/error/bulk_write.rs @@ -9,7 +9,7 @@ use crate::{ /// /// If an additional error occurred that was not the result of an individual write failing or a /// write concern error, it can be retrieved by calling [`source`](core::error::Error::source) on -/// the [`Error`](crate::error::Error) in which this value is stored. +/// the [`Error`](struct@crate::error::Error) in which this value is stored. #[derive(Clone, Debug, Default)] #[non_exhaustive] pub struct BulkWriteError { diff --git a/src/lib.rs b/src/lib.rs index af563acbd..1e7516191 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,15 +3,12 @@ #![warn(rustdoc::missing_crate_level_docs)] #![warn(clippy::cast_possible_truncation)] #![warn(clippy::cast_possible_wrap)] -#![cfg_attr( - feature = "clippy", - allow( - clippy::unreadable_literal, - clippy::cognitive_complexity, - clippy::float_cmp, - clippy::match_like_matches_macro, - clippy::derive_partial_eq_without_eq - ) +#![allow( + clippy::unreadable_literal, + clippy::cognitive_complexity, + clippy::float_cmp, + clippy::match_like_matches_macro, + clippy::derive_partial_eq_without_eq )] #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![cfg_attr(test, type_length_limit = "80000000")]