test-utils: Fix warnings about clippy str_to_string rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-10 00:58:06 +09:00
parent 0a879f7da4
commit c3699b9f32
3 changed files with 20 additions and 20 deletions

View file

@ -12,7 +12,7 @@ pub fn big_struct() -> String {
}
pub fn big_struct_n(n: u32) -> String {
let mut buf = "pub struct RegisterBlock {".to_string();
let mut buf = "pub struct RegisterBlock {".to_owned();
for i in 0..n {
format_to!(buf, " /// Doc comment for {}.\n", i);
format_to!(buf, " pub s{}: S{},\n", i, i);