From 257a48720e5d5346ddbd9921d7d724ccba464e11 Mon Sep 17 00:00:00 2001 From: Kevin Griffin Date: Mon, 6 Mar 2023 14:12:35 -0500 Subject: [PATCH] version bump and preflight fixes --- Cargo.toml | 2 +- src/core/serder.rs | 2 +- src/core/tholder.rs | 2 +- src/data.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5e75a7..808aa46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cesride" -version = "0.1.3" +version = "0.2.0-alpha" edition = "2021" description = "Cryptographic primitives for use with Composable Event Streaming Representation (CESR)" license = "Apache-2.0" diff --git a/src/core/serder.rs b/src/core/serder.rs index 7ef3977..1c24988 100644 --- a/src/core/serder.rs +++ b/src/core/serder.rs @@ -27,7 +27,7 @@ pub struct Serder { fn validate_ident(ident: &str) -> Result<()> { if ident != Identage::KERI { - return err!(Error::Validation(format!("unexpected ident {}", ident))); + return err!(Error::Validation(format!("unexpected ident {ident}"))); } Ok(()) diff --git a/src/core/tholder.rs b/src/core/tholder.rs index 8975994..985b559 100644 --- a/src/core/tholder.rs +++ b/src/core/tholder.rs @@ -184,7 +184,7 @@ impl Tholder { } } else { let thold = self.thold().to_i64()?; - let sith = format!("{t:x}", t = thold); + let sith = format!("{thold:x}"); Ok(data!(&sith)) } } diff --git a/src/data.rs b/src/data.rs index c4a4cc7..dbb154c 100644 --- a/src/data.rs +++ b/src/data.rs @@ -116,7 +116,7 @@ impl fmt::Display for Value { // hopefully unreachable (.to_json() should never blow up) Err(_) => return Err(fmt::Error), }; - write!(f, "{}", json) + write!(f, "{json}") } }