Skip to content

Commit

Permalink
Merge pull request #971 from wprzytula/appease-clippy
Browse files Browse the repository at this point in the history
treewide: appease Clippy
  • Loading branch information
Lorak-mmk authored Mar 24, 2024
2 parents 9634a0f + 1df6eba commit edfb28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scylla-cql/src/frame/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ pub fn write_string(v: &str, buf: &mut impl BufMut) -> Result<(), ParseError> {

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

#[test]
fn type_long_string() {
let vals = vec![String::from(""), String::from("hello, world!")];
let vals = [String::from(""), String::from("hello, world!")];
for val in vals.iter() {
let mut buf = Vec::new();
write_long_string(val, &mut buf).unwrap();
Expand Down

0 comments on commit edfb28a

Please sign in to comment.