From 642ef69a86127b23eed7b13a41fe0a342b8a94c4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 20 Nov 2020 22:49:25 +0000 Subject: [PATCH] fix zcoord debug Signed-off-by: Ian Jackson --- zcoord/zcoord.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zcoord/zcoord.rs b/zcoord/zcoord.rs index d7f6ef26..7ec1e797 100644 --- a/zcoord/zcoord.rs +++ b/zcoord/zcoord.rs @@ -414,7 +414,7 @@ impl Display for ZCoord { impl Debug for ZCoord { #[throws(fmt::Error)] fn fmt(&self, f: &mut Formatter) { - write!(f, r#"Bf""#)?; + write!(f, r#"Zc""#)?; ::fmt(self, f)?; write!(f, r#"""#)?; } @@ -659,7 +659,7 @@ mod test { mem::drop(b); assert_eq!(format!("{}", &b2), s); assert_eq!(format!("{:?}", &b2), - format!(r#"Bf"{}""#, &b2)); + format!(r#"Zc"{}""#, &b2)); fn bad(s: &str) { assert_eq!(Err(ParseError), ZCoord::from_str(s)); } bad(""); bad("0"); -- 2.30.2