summaryrefslogtreecommitdiffstats
path: root/vendor/writeable/src
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:48 +0000
commitef24de24a82fe681581cc130f342363c47c0969a (patch)
tree0d494f7e1a38b95c92426f58fe6eaa877303a86c /vendor/writeable/src
parentReleasing progress-linux version 1.74.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-ef24de24a82fe681581cc130f342363c47c0969a.tar.xz
rustc-ef24de24a82fe681581cc130f342363c47c0969a.zip
Merging upstream version 1.75.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/writeable/src')
-rw-r--r--vendor/writeable/src/ops.rs8
1 files changed, 4 insertions, 4 deletions
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>(),
LengthHint::exact(6)