Skip to content

Commit b51a8ed

Browse files
committed
test(rustfmt): Verify frontmatter is preserved
This is to prove that the frontmatter is preserved. The choices in tests is intended for showing the different parts of the proposed Style Guide for frontmatters.
1 parent 8c32e31 commit b51a8ed

File tree

6 files changed

+74
-0
lines changed

6 files changed

+74
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env cargo
2+
---identifier
3+
[dependencies]
4+
regex = "1"
5+
---
6+
#![feature(frontmatter)]
7+
8+
fn main() {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cargo
2+
------------
3+
package.description = """
4+
Header
5+
-----
6+
7+
Body
8+
"""
9+
------------
10+
11+
#![feature(frontmatter)]
12+
13+
fn main() {}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cargo
2+
3+
4+
--- identifier
5+
[dependencies]
6+
regex = "1"
7+
8+
---
9+
10+
11+
12+
13+
14+
#![feature(frontmatter)]
15+
16+
fn main() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env cargo
2+
---identifier
3+
[dependencies]
4+
regex = "1"
5+
---
6+
#![feature(frontmatter)]
7+
8+
fn main() {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cargo
2+
------------
3+
package.description = """
4+
Header
5+
-----
6+
7+
Body
8+
"""
9+
------------
10+
11+
#![feature(frontmatter)]
12+
13+
fn main() {}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cargo
2+
3+
4+
--- identifier
5+
[dependencies]
6+
regex = "1"
7+
8+
---
9+
10+
11+
12+
13+
14+
#![feature(frontmatter)]
15+
16+
fn main() {}

0 commit comments

Comments
 (0)