From 3fa5a04f696dfaa4004daabebe755b8f9f92bef8 Mon Sep 17 00:00:00 2001 From: Han Xu Date: Mon, 27 Nov 2023 16:30:20 -0800 Subject: [PATCH 1/3] fix cargo doc warning --- src/service_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service_info.rs b/src/service_info.rs index ed3fdb2..140de77 100644 --- a/src/service_info.rs +++ b/src/service_info.rs @@ -23,7 +23,7 @@ pub struct ServiceInfo { ty_domain: String, // . /// See RFC6763 section 7.1 about "Subtypes": - /// https://datatracker.ietf.org/doc/html/rfc6763#section-7.1 + /// sub_domain: Option, // ._sub.. fullname: String, // .. From e4cb8b225ce8de414eb013dda1e4a1a409e14859 Mon Sep 17 00:00:00 2001 From: Han Xu Date: Mon, 27 Nov 2023 16:33:36 -0800 Subject: [PATCH 2/3] CI: replace actions-rs as it is deprecated --- .github/workflows/build.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ad1b61..9ece79e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,14 +18,8 @@ jobs: matrix: os: [ubuntu-20.04, windows-latest, macos-latest] steps: - - uses: actions/checkout@v2 - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.60.0 - override: true - components: rustfmt, clippy + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.60.0 - name: Run rustfmt and fail if any warnings run: cargo fmt -- --check - name: Build From 018c3296865bbd5ffd3f459d9a8df07f2908f22b Mon Sep 17 00:00:00 2001 From: Han Xu Date: Mon, 27 Nov 2023 16:38:38 -0800 Subject: [PATCH 3/3] add back components rustfmt and clippy --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ece79e..01fce5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@1.60.0 + with: + components: rustfmt, clippy - name: Run rustfmt and fail if any warnings run: cargo fmt -- --check - name: Build