From b35488983281ee628711c1f9df76095a7c0a863a Mon Sep 17 00:00:00 2001 From: priks Date: Tue, 21 Feb 2023 15:09:43 +0530 Subject: [PATCH] Bump anyhow --- cargo-clone-core/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cargo-clone-core/src/lib.rs b/cargo-clone-core/src/lib.rs index b4dbefd..c18219a 100644 --- a/cargo-clone-core/src/lib.rs +++ b/cargo-clone-core/src/lib.rs @@ -213,10 +213,10 @@ fn parse_version_req(version: &str) -> CargoResult { if is_req { let vers = VersionReq::parse(version) - .with_context(|| format!("Invalid version requirement: `{}`.", version))?; + .with_context(|| format!("Invalid version requirement: `{version}`."))?; Ok(vers.to_string()) } else { - Ok(format!("={}", version)) + Ok(format!("={version}")) } } @@ -274,10 +274,10 @@ pub fn parse_name_and_version(spec: &str) -> CargoResult { let mut parts = spec.split('@'); let crate_ = parts .next() - .context(format!("Crate name missing in `{}`.", spec))?; + .context(format!("Crate name missing in `{spec}`."))?; let version = parts .next() - .context(format!("Crate version missing in `{}`.", spec))?; + .context(format!("Crate version missing in `{spec}`."))?; Ok(Crate::new( crate_.to_owned(),