Skip to content
Snippets Groups Projects
Verified Commit a7d7d592 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: made clippy pass for old rust versions

Using write! instead of list_str.push_str
parent 8c44f2d9
No related branches found
No related tags found
No related merge requests found
Pipeline #2169 passed
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
/// ``` /// ```
use chrono::Utc; use chrono::Utc;
use regex::Regex; use regex::Regex;
use std::fmt::Write as _;
use std::fs::{File, OpenOptions}; use std::fs::{File, OpenOptions};
use std::io::Write; use std::io::Write;
use std::path::Path; use std::path::Path;
...@@ -140,7 +141,7 @@ where ...@@ -140,7 +141,7 @@ where
{ {
let mut list_str = String::new(); let mut list_str = String::new();
for value in &vec { for value in &vec {
list_str.push_str(&format!("\"{}\", ", value)) write!(&mut list_str, "\"{}\", ", value).unwrap();
} }
list_str.pop(); list_str.pop();
writeln!( writeln!(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment