Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ This project was contributed back to the community by the [D. E. Shaw group](htt

<p align="center">
<a href="https://www.deshaw.com">
<img src="https://www.deshaw.com/assets/logos/black_logo_417x125.png" alt="D. E. Shaw Logo" height="75" >
<img src="https://www.deshaw.com/assets/logos/blue_logo_417x125.png" alt="D. E. Shaw Logo" height="75" >
</a>
</p>
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/resolver/libresolv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down