Update to 2.2.0

epel9
Josh Stone 6 years ago
parent bfd62c3df4
commit 3bab41f35e

1
.gitignore vendored

@ -1 +1,2 @@
/unicase-2.1.0.crate /unicase-2.1.0.crate
/unicase-2.2.0.crate

@ -1,36 +0,0 @@
From dfd4936eb09ecc6cd5c5d79254aa6fdfe35a4667 Mon Sep 17 00:00:00 2001
From: Josh Stone <jistone@redhat.com>
Date: Wed, 16 May 2018 16:29:24 -0700
Subject: [PATCH] Allow the deprecated AsciiExt
---
src/ascii.rs | 2 +-
src/lib.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ascii.rs b/src/ascii.rs
index 745ea04bbcec..885e2703fed9 100644
--- a/src/ascii.rs
+++ b/src/ascii.rs
@@ -1,4 +1,4 @@
-#[allow(unused)]
+#[allow(deprecated, unused)]
use std::ascii::AsciiExt;
#[cfg(__unicase__iter_cmp)]
use std::cmp::Ordering;
diff --git a/src/lib.rs b/src/lib.rs
index 5290d50cbde7..5998fb1b8ccc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -111,7 +111,7 @@ impl<S: AsRef<str>> UniCase<S> {
///
/// Note: This scans the text to determine if it is all ASCII or not.
pub fn new(s: S) -> UniCase<S> {
- #[allow(unused)]
+ #[allow(deprecated, unused)]
use std::ascii::AsciiExt;
if s.as_ref().is_ascii() {
UniCase(Encoding::Ascii(Ascii(s)))
--
2.17.0

@ -5,17 +5,15 @@
%global crate unicase %global crate unicase
Name: rust-%{crate} Name: rust-%{crate}
Version: 2.1.0 Version: 2.2.0
Release: 5%{?dist} Release: 1%{?dist}
Summary: Case-insensitive wrapper around strings Summary: Case-insensitive wrapper around strings
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/unicase URL: https://crates.io/crates/unicase
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# https://github.com/seanmonstar/unicase/pull/24
Patch1: 0001-Allow-the-deprecated-AsciiExt.patch
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
@ -57,6 +55,9 @@ which use %{crate} from crates.io.
%exclude %{cargo_registry}/%{crate}-%{version}/scripts %exclude %{cargo_registry}/%{crate}-%{version}/scripts
%changelog %changelog
* Fri Oct 05 2018 Josh Stone <jistone@redhat.com> - 2.2.0-1
- Update to 2.2.0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -1 +1 @@
SHA512 (unicase-2.1.0.crate) = 422a3424266e262e283ca5af6247ec393670af8e214c4e7d1c389bc827c7572c57ea865449a7d6a834d56cda0ee13a2bd5f3985087cae2369e612f239e8498a7 SHA512 (unicase-2.2.0.crate) = 7aad01e881c18536d1f758303661d9ddeaecdccd13c7e41ae2f11f7d1030fe36dd164234aa1b4a9ef3c0e4dd847f451423a80b68e80c17663286b9c803de20c7

Loading…
Cancel
Save