From 803020be2bc79a6dc8eec01fb384ac6ce328ed5f Mon Sep 17 00:00:00 2001 From: Max Heller Date: Tue, 17 Aug 2021 16:54:55 -0400 Subject: [PATCH 1/4] fix build --- README.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.tpl b/README.tpl index 03c752f..a323772 100644 --- a/README.tpl +++ b/README.tpl @@ -34,6 +34,6 @@ This project was contributed back to the community by the [D. E. Shaw group](htt

- D. E. Shaw Logo + D. E. Shaw Logo

From 2ebcfaef978ed701ad82a463b9bbff739affce5f Mon Sep 17 00:00:00 2001 From: Max Heller Date: Mon, 6 Sep 2021 10:05:08 -0400 Subject: [PATCH 2/4] Use ubuntu-latest for Github actions runners --- .github/workflows/rust.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c953daa..4f66a25 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ env: jobs: test: - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Build (no default features) @@ -22,20 +22,20 @@ jobs: run: cargo bench --no-run --all-features rustfmt: - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: cargo fmt -- --check clippy: - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@clippy - run: cargo clippy --all-features --tests -- -Dclippy::all cargo-readme: - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: cargo install cargo-readme From 15209fa1b2718c4745bd087baf9f973373daf7a4 Mon Sep 17 00:00:00 2001 From: Max Heller Date: Mon, 6 Sep 2021 10:24:25 -0400 Subject: [PATCH 3/4] update lint name --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c3e06ce..8bffb2e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ #![deny(missing_docs)] -#![warn(broken_intra_doc_links)] +#![warn(rustdoc::broken_intra_doc_links)] /*! Rust client for communicating with services located by DNS SRV records. From 0afa698df2ca4aaa2844ff484d362a92717ca70d Mon Sep 17 00:00:00 2001 From: Max Heller Date: Mon, 6 Sep 2021 10:24:44 -0400 Subject: [PATCH 4/4] fix ttl test --- src/resolver/libresolv/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resolver/libresolv/mod.rs b/src/resolver/libresolv/mod.rs index 7fae0e7..c3efc66 100644 --- a/src/resolver/libresolv/mod.rs +++ b/src/resolver/libresolv/mod.rs @@ -192,11 +192,12 @@ mod tests { #[tokio::test] async fn srv_lookup() -> Result<(), LibResolvError> { + let now = Instant::now(); let (records, valid_until) = LibResolv::default() .get_srv_records_unordered(crate::EXAMPLE_SRV) .await?; assert_ne!(records.len(), 0); - assert!(valid_until > Instant::now()); + assert!(valid_until > now); Ok(()) }