From 470cfd2a48b2517be8fc4f2bccdcdd76e2e9fcd3 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 1 Sep 2019 13:09:10 +0200 Subject: [PATCH] FIX: Update serde impls for Array changes --- src/array_string.rs | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/array_string.rs b/src/array_string.rs index 5aa8d4e..5159dfb 100644 --- a/src/array_string.rs +++ b/src/array_string.rs @@ -547,7 +547,7 @@ impl<'de, A> Deserialize<'de> for ArrayString type Value = ArrayString; fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - write!(formatter, "a string no more than {} bytes long", A::capacity()) + write!(formatter, "a string no more than {} bytes long", A::CAPACITY) } fn visit_str(self, v: &str) -> Result diff --git a/src/lib.rs b/src/lib.rs index 9067a1f..1c176fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1119,7 +1119,7 @@ impl<'de, T: Deserialize<'de>, A: Array> Deserialize<'de> for ArrayVec; fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - write!(formatter, "an array with no more than {} items", A::capacity()) + write!(formatter, "an array with no more than {} items", A::CAPACITY) } fn visit_seq(self, mut seq: SA) -> Result @@ -1129,7 +1129,7 @@ impl<'de, T: Deserialize<'de>, A: Array> Deserialize<'de> for ArrayVec