Skip to content

Commit 56fefbc

Browse files
author
Jiayu Liu
committed
add back copied
1 parent 0f0a552 commit 56fefbc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

arrow/src/compute/kernels/window.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,27 @@ mod tests {
121121
fn test_shift_neg_int32_dict() {
122122
let a: Int32DictionaryArray = [Some("alpha"), None, Some("beta"), Some("alpha")]
123123
.iter()
124+
.copied()
124125
.collect();
125126
let res = shift(&a, -1).unwrap();
126-
let expected: Int32DictionaryArray =
127-
[None, Some("beta"), Some("alpha"), None].iter().collect();
127+
let expected: Int32DictionaryArray = [None, Some("beta"), Some("alpha"), None]
128+
.iter()
129+
.copied()
130+
.collect();
128131
assert_eq!(res.as_ref(), &expected);
129132
}
130133

131134
#[test]
132135
fn test_shift_pos_int32_dict() {
133136
let a: Int32DictionaryArray = [Some("alpha"), None, Some("beta"), Some("alpha")]
134137
.iter()
138+
.copied()
135139
.collect();
136140
let res = shift(&a, 1).unwrap();
137-
let expected: Int32DictionaryArray =
138-
[None, Some("alpha"), None, Some("beta")].iter().collect();
141+
let expected: Int32DictionaryArray = [None, Some("alpha"), None, Some("beta")]
142+
.iter()
143+
.copied()
144+
.collect();
139145
assert_eq!(res.as_ref(), &expected);
140146
}
141147

0 commit comments

Comments
 (0)