From 583ac916075f7bf7cb7b6016abecd2e7bd22d065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natalie=20Klestrup=20R=C3=B6ijezon?= Date: Thu, 28 Nov 2024 18:19:51 +0100 Subject: [PATCH] Silence doc errors for tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This seems to have been added in Rust 1.83 that was just released, and is only triggered by tarpaulin? Signed-off-by: Natalie Klestrup Röijezon --- kube-derive/tests/crd_enum_test.rs | 2 ++ kube-derive/tests/crd_schema_test.rs | 1 + kube-derive/tests/resource.rs | 2 ++ kube-derive/tests/test_ui.rs | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/kube-derive/tests/crd_enum_test.rs b/kube-derive/tests/crd_enum_test.rs index 8c37fb1db..cc14148cb 100644 --- a/kube-derive/tests/crd_enum_test.rs +++ b/kube-derive/tests/crd_enum_test.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use kube_derive::CustomResource; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; diff --git a/kube-derive/tests/crd_schema_test.rs b/kube-derive/tests/crd_schema_test.rs index e975d8ff3..3affbf8cb 100644 --- a/kube-derive/tests/crd_schema_test.rs +++ b/kube-derive/tests/crd_schema_test.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #![recursion_limit = "256"] use assert_json_diff::assert_json_eq; diff --git a/kube-derive/tests/resource.rs b/kube-derive/tests/resource.rs index 5d9951bba..545e55292 100644 --- a/kube-derive/tests/resource.rs +++ b/kube-derive/tests/resource.rs @@ -1,3 +1,5 @@ +#![allow(missing_docs)] + use k8s_openapi::{ api::core::v1::{ConfigMap, Secret}, ByteString, diff --git a/kube-derive/tests/test_ui.rs b/kube-derive/tests/test_ui.rs index 536f6222f..068191260 100644 --- a/kube-derive/tests/test_ui.rs +++ b/kube-derive/tests/test_ui.rs @@ -1,4 +1,4 @@ -/// Runs UI tests using [`trybuild`]. +#![allow(missing_docs)] // Test that `kube-derive` outputs helpful error messages. // If you make a change, remove `tests/ui/*.stderr` and run `cargo test`.