diff --git a/0001-fix-now-can-be-used-again-on-nightly.patch b/0001-fix-now-can-be-used-again-on-nightly.patch new file mode 100644 index 0000000..09efc60 --- /dev/null +++ b/0001-fix-now-can-be-used-again-on-nightly.patch @@ -0,0 +1,37 @@ +From ced70c2ff0ea01e7e99ffcfb0431c1326e9b5cb2 Mon Sep 17 00:00:00 2001 +From: Philipp Korber +Date: Tue, 7 Nov 2017 13:37:11 +0100 +Subject: [PATCH] fix: now can be used again on nightly + +(rust stability gurantees do not apply to + crates using deny(warnings) as introducing + warnings is not seen as a braking change) +--- + src/lib.rs | 1 + + src/parse.rs | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/lib.rs b/src/lib.rs +index f01d6f2..f9bff72 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -452,6 +452,7 @@ macro_rules! names { + + #[test] + fn test_names_macro_consts() { ++ #[allow(warnings)] + use std::ascii::AsciiExt; + $( + assert_eq!($id.source.to_ascii_lowercase(), $id.source); +diff --git a/src/parse.rs b/src/parse.rs +index c61afcf..2fba380 100644 +--- a/src/parse.rs ++++ b/src/parse.rs +@@ -1,3 +1,4 @@ ++#[allow(unused_imports)] + use std::ascii::AsciiExt; + use std::error::Error; + use std::fmt; +-- +2.16.1 + diff --git a/mime-0.3.5-fix-unused-asciiext.diff b/mime-0.3.5-fix-unused-asciiext.diff deleted file mode 100644 index 3663fa8..0000000 --- a/mime-0.3.5-fix-unused-asciiext.diff +++ /dev/null @@ -1,19 +0,0 @@ -diff -upr mime-0.3.5.asciiext/src/lib.rs mime-0.3.5/src/lib.rs ---- mime-0.3.5.asciiext/src/lib.rs 2017-10-11 13:14:46.000000000 -0700 -+++ mime-0.3.5/src/lib.rs 2018-01-25 20:50:43.497982337 -0800 -@@ -539,6 +539,7 @@ macro_rules! names { - - #[test] - fn test_names_macro_consts() { -+ #[allow(unused_imports)] - use std::ascii::AsciiExt; - $( - assert_eq!($id.source.to_ascii_lowercase(), $id.source); -diff -upr mime-0.3.5.asciiext/src/parse.rs mime-0.3.5/src/parse.rs ---- mime-0.3.5.asciiext/src/parse.rs 2017-10-11 12:56:54.000000000 -0700 -+++ mime-0.3.5/src/parse.rs 2018-01-25 20:51:01.185591929 -0800 -@@ -1,3 +1,4 @@ -+#[allow(unused_imports)] - use std::ascii::AsciiExt; - use std::error::Error; - use std::fmt; diff --git a/rust-mime.spec b/rust-mime.spec index 7f3dc5e..55f028f 100644 --- a/rust-mime.spec +++ b/rust-mime.spec @@ -12,7 +12,8 @@ Summary: Strongly Typed Mimes License: MIT or ASL 2.0 URL: https://crates.io/crates/mime Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate -Patch0: mime-0.3.5-fix-unused-asciiext.diff +# https://github.com/hyperium/mime/commit/ced70c2ff0ea01e7e99ffcfb0431c1326e9b5cb2 +Patch0: 0001-fix-now-can-be-used-again-on-nightly.patch ExclusiveArch: %{rust_arches}