]> git.lizzy.rs Git - rust.git/blobdiff - crates/test_utils/src/bench_fixture.rs
fix: improve parameter completion
[rust.git] / crates / test_utils / src / bench_fixture.rs
index 3a37c4473cdb96533a8ae3496a4ea1c437b11bad..979156263de1b63fd8e2573db1fda9f184338619 100644 (file)
@@ -8,7 +8,10 @@
 
 pub fn big_struct() -> String {
     let n = 1_000;
+    big_struct_n(n)
+}
 
+pub fn big_struct_n(n: u32) -> String {
     let mut buf = "pub struct RegisterBlock {".to_string();
     for i in 0..n {
         format_to!(buf, "  /// Doc comment for {}.\n", i);