You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nativelink-config/generate-stores-config/src/main.rs
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,23 +22,31 @@ fn main() {
22
22
for block in json_start.captures_iter(&stores_rs){
23
23
let start_marker = block.get(0).unwrap().end();
24
24
let end_match = block_end.find(&stores_rs[start_marker..]).unwrap();
25
-
let end_marker =end_match.start();
26
-
let contents = &stores_rs[start_marker..(start_marker+end_marker)].split("\n").map(|line| line.replacen("///","",1)).collect::<Vec<String>>().join("\n");
25
+
let end_marker = end_match.start();
26
+
let contents = &stores_rs[start_marker..(start_marker + end_marker)]
27
+
.split("\n")
28
+
.map(|line| line.replacen("///","",1))
29
+
.collect::<Vec<String>>()
30
+
.join("\n");
27
31
blocks.push(contents.trim().to_string());
28
32
}
29
33
30
-
letmut output = String::from("// Generated by generate-stores-config from stores.rs comments for testing
34
+
letmut output = String::from(
35
+
"// Generated by generate-stores-config from stores.rs comments for testing
0 commit comments