Skip to content

Commit d684652

Browse files
committed
ci: use nightly again for check_fmt_clippy_docs
actions-rs now does the appropriate component fallback for this.
1 parent cdc86a6 commit d684652

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@master
2525

26-
- name: Install ${{ matrix.rust }}
26+
- name: Install ${{ matrix.rust }} toolchain
2727
uses: actions-rs/toolchain@v1
2828
with:
2929
toolchain: ${{ matrix.rust }}
@@ -53,6 +53,14 @@ jobs:
5353
steps:
5454
- uses: actions/checkout@master
5555

56+
- name: Install nightly toolchain
57+
uses: actions-rs/toolchain@v1
58+
with:
59+
profile: minimal
60+
toolchain: nightly
61+
override: true
62+
components: clippy, rustfmt
63+
5664
- name: clippy
5765
run: cargo clippy --workspace --all-targets --features "hyperium_http,unstable" -- -D warnings
5866

src/mime/constants.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,23 @@ macro_rules! mime_const {
2020
};
2121

2222
(with_params, $name:ident, $desc:expr, $base:expr, $sub:expr, $is_utf8:expr, $doccomment:expr) => {
23-
mime_const!(doc_expanded, $name, $desc, $base, $sub, $is_utf8,
24-
concat!(
23+
mime_const!(
24+
doc_expanded,
25+
$name,
26+
$desc,
27+
$base,
28+
$sub,
29+
$is_utf8,
30+
concat!(
2531
"Content-Type for ",
2632
$desc,
2733
".\n\n# Mime Type\n\n```text\n",
28-
$base, "/", $sub, $doccomment, "\n```")
34+
$base,
35+
"/",
36+
$sub,
37+
$doccomment,
38+
"\n```"
39+
)
2940
);
3041
};
3142

0 commit comments

Comments
 (0)