Skip to content

Commit

Permalink
treewide: appease Clippy
Browse files Browse the repository at this point in the history
With the new update of the toolchain, it found (reasonable) nits.
  • Loading branch information
wprzytula committed Mar 24, 2024
1 parent 9634a0f commit 1df6eba
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 1df6eba

Please sign in to comment.