From b51688a556742ea678513ef87cc635cec89621ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 17 May 2021 12:17:48 +0200 Subject: [PATCH] Pin memchr to 2.3.4 for 1.35.0 compat. Fix Url::into_string() deprecation warning --- Cargo.toml | 4 ++++ src/ops/mod.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cb4b0d4b15..eb9ef15999 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,6 +45,10 @@ lazy_static = "1.4" array_tool = "1.0" tabwriter = "1.1" lazysort = "0.2" +# indirect via aho-corastick via regex +# naming constants with `_` is unstable (see issue #54912) +# non exhaustive is an experimental feature (see issue #44109) +memchr = "=2.3.4" regex = "1.3" serde = "1.0" # indirect via url diff --git a/src/ops/mod.rs b/src/ops/mod.rs index e925381f83..27b6b000e0 100644 --- a/src/ops/mod.rs +++ b/src/ops/mod.rs @@ -456,7 +456,7 @@ impl GitRepoPackage { url.set_query(None); GitRepoPackage { name: c.get(1).unwrap().as_str().to_string(), - url: url.into_string(), + url: url.into(), branch: branch, id: Oid::from_str(c.get(4).unwrap().as_str()).unwrap(), newest_id: None,