We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f942ccb commit ee11481Copy full SHA for ee11481
.github/workflows/rust.yml
@@ -17,8 +17,9 @@ jobs:
17
18
steps:
19
- uses: actions/checkout@v3
20
- - name: rust version
21
- run: rustc --version
+ - uses: dtolnay/rust-toolchain@stable
+ with:
22
+ components: clippy, rustfmt
23
- name: rustfmt
24
run: cargo fmt --all -- --check
25
- name: check
src/acl/mod.rs
@@ -510,7 +510,7 @@ impl AccessControl {
510
511
/// Returns the ASCII representation a domain name,
512
/// if conversion fails returns original string
513
- fn convert_to_ascii(host: &str) -> Cow<str> {
+ fn convert_to_ascii(host: &str) -> Cow<'_, str> {
514
idna::domain_to_ascii(host).map(From::from).unwrap_or_else(|_| host.into())
515
}
516
0 commit comments