Skip to content

Commit edfb28a

Browse files
authored
Merge pull request #971 from wprzytula/appease-clippy
treewide: appease Clippy
2 parents 9634a0f + 1df6eba commit edfb28a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scylla-cql/src/frame/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ pub fn write_string(v: &str, buf: &mut impl BufMut) -> Result<(), ParseError> {
371371

372372
#[test]
373373
fn type_string() {
374-
let vals = vec![String::from(""), String::from("hello, world!")];
374+
let vals = [String::from(""), String::from("hello, world!")];
375375
for val in vals.iter() {
376376
let mut buf = Vec::new();
377377
write_string(val, &mut buf).unwrap();
@@ -396,7 +396,7 @@ pub fn write_long_string(v: &str, buf: &mut impl BufMut) -> Result<(), ParseErro
396396

397397
#[test]
398398
fn type_long_string() {
399-
let vals = vec![String::from(""), String::from("hello, world!")];
399+
let vals = [String::from(""), String::from("hello, world!")];
400400
for val in vals.iter() {
401401
let mut buf = Vec::new();
402402
write_long_string(val, &mut buf).unwrap();

0 commit comments

Comments
 (0)