diff --git a/mime-0.3.5-fix-unused-asciiext.diff b/mime-0.3.5-fix-unused-asciiext.diff new file mode 100644 index 0000000..3663fa8 --- /dev/null +++ b/mime-0.3.5-fix-unused-asciiext.diff @@ -0,0 +1,19 @@ +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 37efc00..83bb4e6 100644 --- a/rust-mime.spec +++ b/rust-mime.spec @@ -6,12 +6,13 @@ Name: rust-%{crate} Version: 0.3.5 -Release: 2%{?dist} +Release: 3%{?dist} 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 ExclusiveArch: %{rust_arches} @@ -53,6 +54,9 @@ which use %{crate} from crates.io. %{cargo_registry}/%{crate}-%{version}/ %changelog +* Thu Jan 25 2018 Josh Stone - 0.3.5-3 +- Fix unused_imports warning for AsciiExt (rust 1.23) + * Mon Jan 08 2018 Igor Gnatenko - 0.3.5-2 - Rebuild for rust-packaging v5