diff options
| author | Ralf Jung <post@ralfj.de> | 2020-09-21 10:40:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-21 10:40:41 +0200 |
| commit | f957aeef9f3141e93fda5a91851fa9c24cce6b69 (patch) | |
| tree | c43da1f6d7a56025542710efe4fe86d7868bcfbf /src | |
| parent | 048866bd6b74ef34a8a2e1a3e89f9617834a5d05 (diff) | |
| parent | 4bc0e55ac4280be80d8cd0f9bc26bd0949f75494 (diff) | |
Rollup merge of #76959 - est31:write, r=oli-obk
Replace write_fmt with write! Latter is simpler
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/unstable-book-gen/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/unstable-book-gen/src/main.rs b/src/tools/unstable-book-gen/src/main.rs index 387b2acd106..e10f72a47b2 100644 --- a/src/tools/unstable-book-gen/src/main.rs +++ b/src/tools/unstable-book-gen/src/main.rs @@ -27,12 +27,12 @@ macro_rules! t { fn generate_stub_issue(path: &Path, name: &str, issue: u32) { let mut file = t!(File::create(path)); - t!(file.write_fmt(format_args!(include_str!("stub-issue.md"), name = name, issue = issue))); + t!(write!(file, include_str!("stub-issue.md"), name = name, issue = issue)); } fn generate_stub_no_issue(path: &Path, name: &str) { let mut file = t!(File::create(path)); - t!(file.write_fmt(format_args!(include_str!("stub-no-issue.md"), name = name))); + t!(write!(file, include_str!("stub-no-issue.md"), name = name)); } fn set_to_summary_str(set: &BTreeSet<String>, dir: &str) -> String { |
