From 74d9af78bd32b88b0845fbe7ca86675d55ab1cfd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 23 Jul 2023 22:16:56 +0200 Subject: [PATCH] Remove deny(warnings) lint from doctests --- 0001-deny-warnings-considered-harmful.patch | 24 +++++++++++++++++++++ README.md | 3 --- rust-az.spec | 5 ++--- 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 0001-deny-warnings-considered-harmful.patch delete mode 100644 README.md diff --git a/0001-deny-warnings-considered-harmful.patch b/0001-deny-warnings-considered-harmful.patch new file mode 100644 index 0000000..0e15fcd --- /dev/null +++ b/0001-deny-warnings-considered-harmful.patch @@ -0,0 +1,24 @@ +From 4613c06f3db9818ed7165c18fc6e89c13ab3e526 Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Sun, 23 Jul 2023 22:15:00 +0200 +Subject: [PATCH] deny(warnings) considered harmful + +--- + src/lib.rs | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/lib.rs b/src/lib.rs +index be8a2cc..be34c6f 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -120,7 +120,6 @@ additional terms or conditions. + #![no_std] + #![warn(missing_docs)] + #![doc(html_root_url = "https://docs.rs/az/~1.2")] +-#![doc(test(attr(deny(warnings))))] + #![cfg_attr(feature = "fail-on-warnings", deny(warnings))] + + #[cfg(test)] +-- +2.41.0 + diff --git a/README.md b/README.md deleted file mode 100644 index 12dc092..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-az - -The rust-az package diff --git a/rust-az.spec b/rust-az.spec index b0ec821..39cf34d 100644 --- a/rust-az.spec +++ b/rust-az.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} @@ -13,8 +13,7 @@ Summary: Casts and checked casts License: MIT OR Apache-2.0 URL: https://crates.io/crates/az Source: %{crates_source} - -ExclusiveArch: %{rust_arches} +Patch: 0001-deny-warnings-considered-harmful.patch BuildRequires: rust-packaging >= 21