Skip to content

Commit ee11481

Browse files
committed
update CI scripts
1 parent f942ccb commit ee11481

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: rust version
21-
run: rustc --version
20+
- uses: dtolnay/rust-toolchain@stable
21+
with:
22+
components: clippy, rustfmt
2223
- name: rustfmt
2324
run: cargo fmt --all -- --check
2425
- name: check

src/acl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl AccessControl {
510510

511511
/// Returns the ASCII representation a domain name,
512512
/// if conversion fails returns original string
513-
fn convert_to_ascii(host: &str) -> Cow<str> {
513+
fn convert_to_ascii(host: &str) -> Cow<'_, str> {
514514
idna::domain_to_ascii(host).map(From::from).unwrap_or_else(|_| host.into())
515515
}
516516

0 commit comments

Comments
 (0)