diff --git a/build.rs b/build.rs index 6eb60c6c92be67d7ee43c8c3ec5cdf3c28a069ba..feac022482491dbba9941c8e46ff0003030c7ed5 100644 --- a/build.rs +++ b/build.rs @@ -25,6 +25,7 @@ /// ``` use chrono::Utc; use regex::Regex; +use std::fmt::Write as _; use std::fs::{File, OpenOptions}; use std::io::Write; use std::path::Path; @@ -140,7 +141,7 @@ where { let mut list_str = String::new(); for value in &vec { - list_str.push_str(&format!("\"{}\", ", value)) + write!(&mut list_str, "\"{}\", ", value).unwrap(); } list_str.pop(); writeln!(