From: Ian Jackson Date: Fri, 20 Nov 2020 22:49:25 +0000 (+0000) Subject: fix zcoord debug X-Git-Tag: otter-0.2.0~457 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=642ef69a86127b23eed7b13a41fe0a342b8a94c4;p=otter.git fix zcoord debug Signed-off-by: Ian Jackson --- 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");