mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
test-utils: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
0a879f7da4
commit
c3699b9f32
3 changed files with 20 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue