Skip to content

Commit

Permalink
fix: ci rust.yml
Browse files Browse the repository at this point in the history
Change-Id: Iab68ced2ce352294c95aa0578b3078cdf875a79b
  • Loading branch information
fanlv committed Jun 14, 2024
1 parent 93af208 commit 8632af6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run sophia
run: cargo run --bin sophia
- name: Run sophia-server
run: cargo run --bin sophia-server
- name: Run tests
run: cargo test --verbose
2 changes: 1 addition & 1 deletion sophia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ futures-util = { version = "0.3.5", features = ["io"] }
clap = { version = "4", features = ["derive"] }
rand = "0.8.5"
url = "2.3.0"
trust-dns-resolver = "*"
trust-dns-resolver = "0.23.2"
tui = { version = "0.14.0", default-features = false, features = ['crossterm', 'serde'] }
crossterm = "0.18.2"
whoami = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion sophia/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async fn get_env_args() -> Result<Args> {
async fn lookup_ip(domain: &str) -> Result<IpAddr> {
let resolver = TokioAsyncResolver::tokio(
ResolverConfig::default(),
ResolverOpts::default(), )
ResolverOpts::default())
.map_err(|e| errno_new!("failed to new resolver, err = {}", e))?;


Expand Down

0 comments on commit 8632af6

Please sign in to comment.