]> git.proxmox.com Git - debcargo-conf.git/commitdiff
num-format - fix arrayvec patch for no-default-features.
authorPeter Michael Green <plugwash@debian.org>
Thu, 23 Jun 2022 22:19:27 +0000 (22:19 +0000)
committerPeter Michael Green <plugwash@debian.org>
Fri, 24 Jun 2022 01:28:55 +0000 (01:28 +0000)
src/num-format/debian/patches/arrayvec.diff

index a8a5e79bb319955cabc0f16d4487db7066cc3ee6..b465c19a8a3aadc0ce22413340ca683a2955a523 100644 (file)
@@ -55,3 +55,25 @@ Index: num-format/src/strings.rs
              fn from(s: $name) -> Self {
                  s.0
              }
+Index: num-format/src/error_kind.rs
+===================================================================
+--- num-format.orig/src/error_kind.rs
++++ num-format/src/error_kind.rs
+@@ -28,7 +28,7 @@ pub enum ErrorKind {
+     #[cfg(not(feature = "std"))]
+     /// Other miscellaneous error.
+-    Other(ArrayString<[u8; MAX_ERR_LEN]>),
++    Other(ArrayString<MAX_ERR_LEN>),
+     #[cfg(feature = "std")]
+     /// Failed to parse input into a valid locale.
+@@ -36,7 +36,7 @@ pub enum ErrorKind {
+     #[cfg(not(feature = "std"))]
+     /// Failed to parse input into a valid locale.
+-    ParseLocale(ArrayString<[u8; MAX_ERR_LEN]>),
++    ParseLocale(ArrayString<MAX_ERR_LEN>),
+     #[cfg(all(feature = "with-system-locale", any(unix, windows)))]
+     /// Call to C standard library or Windows API unexpectedly returned invalid data.