Skip to content

Commit f1ca4c5

Browse files
committed
fix quotes
1 parent 7c0adda commit f1ca4c5

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

preprocessing/src/main.rs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
use serde::Deserialize;
32

43
#[derive(Debug, Deserialize)]
@@ -21,7 +20,8 @@ fn main() {
2120
};
2221
//println!("{:?}", data);
2322

24-
let mut text = String::from(r"#
23+
let mut text = String::from(
24+
r#"
2525
---
2626
title: Meetups
2727
timestamp: 2023-12-11T08:30:01
@@ -34,21 +34,25 @@ I wanted to know the relative sizes of the various Rust-specific Meetup groups s
3434
3535
| name | members | location |
3636
| ---- | ------- | -------- |
37-
#");
37+
"#,
38+
);
3839
for group in groups {
39-
text.push_str(format!("| [{}]({}) | {} | {} |\n", group.name, group.url, group.members, group.location).as_str());
40+
text.push_str(
41+
format!(
42+
"| [{}]({}) | {} | {} |\n",
43+
group.name, group.url, group.members, group.location
44+
)
45+
.as_str(),
46+
);
4047
}
4148

42-
text.push_str(r"#
43-
44-
For this page even the Markdown file is generated. See the `preprocessing` in the [repository](https://github.com/szabgab/rust.code-maven.com/) and the `examples/meetups.yaml file`.
45-
#");
49+
text.push_str(r#"
4650
51+
For this page even the Markdown file is generated. See the `preprocessing` in the [repository](https://github.com/szabgab/rust.code-maven.com/) and the `examples/meetups.yaml file`.
52+
"#);
4753

4854
let filename = "../pages/meetups.md";
4955
if let Err(err) = std::fs::write(filename, text) {
5056
eprintln!("Could not write the file '{filename}': {err}");
5157
}
52-
5358
}
54-

0 commit comments

Comments
 (0)