From 004f5357ca571a5d8f1aa6c2379fa8d00f006e68 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 25 Jan 2018 18:14:59 -0800 Subject: [PATCH] Fix unused_imports warning for AsciiExt (rust 1.23) --- pkg-config-0.3.9-fix-unused-asciiext.diff | 10 ++++++++++ rust-pkg-config.spec | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkg-config-0.3.9-fix-unused-asciiext.diff diff --git a/pkg-config-0.3.9-fix-unused-asciiext.diff b/pkg-config-0.3.9-fix-unused-asciiext.diff new file mode 100644 index 0000000..69aea99 --- /dev/null +++ b/pkg-config-0.3.9-fix-unused-asciiext.diff @@ -0,0 +1,10 @@ +--- pkg-config-0.3.9/src/lib.rs.asciiext 2017-01-24 09:27:31.000000000 -0800 ++++ pkg-config-0.3.9/src/lib.rs 2018-01-25 18:11:44.581051903 -0800 +@@ -64,6 +64,7 @@ + #![doc(html_root_url = "https://docs.rs/pkg-config/0.3")] + #![cfg_attr(test, deny(warnings))] + ++#[allow(unused_imports)] + use std::ascii::AsciiExt; + use std::env; + use std::error; diff --git a/rust-pkg-config.spec b/rust-pkg-config.spec index 79cb834..692bddb 100644 --- a/rust-pkg-config.spec +++ b/rust-pkg-config.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.3.9 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Library to run the pkg-config system tool License: MIT or ASL 2.0 @@ -15,6 +15,7 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ # Initial patched metadata # * Bump lazy_static to 1, https://github.com/alexcrichton/pkg-config-rs/commit/41b81f57113a1df40e899ed83dc829ab60423f33 Patch0: pkg-config-0.3.9-fix-metadata.diff +Patch1: pkg-config-0.3.9-fix-unused-asciiext.diff ExclusiveArch: %{rust_arches} @@ -60,6 +61,9 @@ which use %{crate} from crates.io. %{cargo_registry}/%{crate}-%{version}/ %changelog +* Thu Jan 25 2018 Josh Stone - 0.3.9-5 +- Fix unused_imports warning for AsciiExt (rust 1.23) + * Mon Jan 08 2018 Igor Gnatenko - 0.3.9-4 - Rebuild for rust-packaging v5