From 7cfff34602c5d59ee99c4f836c26875bbd6bef73 Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Wed, 4 May 2022 11:36:23 -0400 Subject: [PATCH] Name changed, prefix 'to_' was removed. Signed-off-by: Greg Burd --- core-traits/lib.rs | 6 +++--- edn/src/pretty_print.rs | 2 +- edn/src/types.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core-traits/lib.rs b/core-traits/lib.rs index 53380b11..5bf7c697 100644 --- a/core-traits/lib.rs +++ b/core-traits/lib.rs @@ -582,7 +582,7 @@ impl TypedValue { match self { TypedValue::Uuid(v) => { // Get an independent copy of the string. - let s: String = v.to_hyphenated().to_string(); + let s: String = v.hyphenated().to_string(); // Make a CString out of the new bytes. let c: CString = CString::new(s).expect("String conversion failed!"); @@ -603,7 +603,7 @@ impl TypedValue { pub fn into_uuid_string(self) -> Option { match self { - TypedValue::Uuid(v) => Some(v.to_hyphenated().to_string()), + TypedValue::Uuid(v) => Some(v.hyphenated().to_string()), _ => None, } } @@ -963,7 +963,7 @@ impl Binding { pub fn into_uuid_string(self) -> Option { match self { - Binding::Scalar(TypedValue::Uuid(v)) => Some(v.to_hyphenated().to_string()), + Binding::Scalar(TypedValue::Uuid(v)) => Some(v.hyphenated().to_string()), _ => None, } } diff --git a/edn/src/pretty_print.rs b/edn/src/pretty_print.rs index acaa579c..a0604fa0 100644 --- a/edn/src/pretty_print.rs +++ b/edn/src/pretty_print.rs @@ -101,7 +101,7 @@ impl Value { Value::Text(ref v) => pp.text("\"").append(v.as_str()).append("\""), Value::Uuid(ref u) => pp .text("#uuid \"") - .append(u.to_hyphenated().to_string()) + .append(u.hyphenated().to_string()) .append("\""), Value::Instant(ref v) => pp .text("#inst \"") diff --git a/edn/src/types.rs b/edn/src/types.rs index 818b0453..3622693e 100644 --- a/edn/src/types.rs +++ b/edn/src/types.rs @@ -569,7 +569,7 @@ macro_rules! def_common_value_display { } // TODO: EDN escaping. $t::Text(ref v) => write!($f, "\"{}\"", v), - $t::Uuid(ref u) => write!($f, "#uuid \"{}\"", u.to_hyphenated().to_string()), + $t::Uuid(ref u) => write!($f, "#uuid \"{}\"", u.hyphenated().to_string()), $t::PlainSymbol(ref v) => v.fmt($f), $t::NamespacedSymbol(ref v) => v.fmt($f), $t::Keyword(ref v) => v.fmt($f),