From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/writeable/src/ops.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vendor/writeable/src') diff --git a/vendor/writeable/src/ops.rs b/vendor/writeable/src/ops.rs index 2ccad7d6d..a4c1ffd75 100644 --- a/vendor/writeable/src/ops.rs +++ b/vendor/writeable/src/ops.rs @@ -183,7 +183,7 @@ mod tests { #[test] fn test_sum() { - let lens = vec![ + let lens = [ LengthHint::exact(4), LengthHint::exact(1), LengthHint::exact(1), @@ -193,7 +193,7 @@ mod tests { LengthHint::exact(6) ); - let lens = vec![ + let lens = [ LengthHint::exact(4), LengthHint::undefined(), LengthHint::at_least(1), @@ -203,7 +203,7 @@ mod tests { LengthHint::at_least(5) ); - let lens = vec![ + let lens = [ LengthHint::exact(4), LengthHint::undefined(), LengthHint::at_most(1), @@ -213,7 +213,7 @@ mod tests { LengthHint::at_least(4) ); - let lens = vec![4, 1, 1]; + let lens = [4, 1, 1]; assert_eq!( lens.iter().copied().sum::(), LengthHint::exact(6) -- cgit v1.2.3