1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Description: use newer branch of crate arrayvec
Author: Matthias Geiger <werdahias@riseup.net>
Bug-Debian: https://bugs.debian.org/1100432
Forwarded: not-needed
Last-Update: 2025-03-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,7 @@
bincode = "1.2.1"
[dev-dependencies.arrayvec]
- version = "~0.5.1"
+ version = "0.7"
default-features = false
[dev-dependencies.rand]
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -82,7 +82,7 @@
#[cfg(test)]
macro_rules! format {
($capacity:expr, $($arg:tt)*) => {{
- let mut output = arrayvec::ArrayString::<[_; $capacity]>::new();
+ let mut output = arrayvec::ArrayString::<$capacity>::new();
core::fmt::write(&mut output, core::format_args!($($arg)*)).expect("insufficient ArrayString capacity");
output
}}
|