Skip to content

Commit 885b6ed

Browse files
authored
Merge pull request #2180 from samueltardieu/format-cynic-output
Format Rust file generated by cynic
2 parents 33cb57e + 2e6bd89 commit 885b6ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

github-graphql/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ pub fn main() {
44
.unwrap()
55
.as_default()
66
.unwrap();
7+
std::process::Command::new("rustfmt")
8+
.arg(format!(
9+
"{}/cynic-schemas/github.rs",
10+
std::env::var("OUT_DIR").unwrap()
11+
))
12+
.status()
13+
.expect("failed to execute rustfmt");
714
}

0 commit comments

Comments
 (0)