Skip to content

Commit 75b7883

Browse files
committed
update dependencies
1 parent be33743 commit 75b7883

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
if: github.actor == 'dependabot[bot]'
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
1515
- name: Auto approve pull request, then squash and merge

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
id-token: write
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
- uses: rust-lang/crates-io-auth-action@v1
2020
id: auth
2121
- run: cargo publish

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ${{ matrix.os }}
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
- name: rustfmt
2525
if: ${{ !cancelled() }}
2626
run: cargo fmt --all -- --check
@@ -50,7 +50,7 @@ jobs:
5050
os: [ubuntu-latest, macos-latest, windows-latest]
5151
runs-on: ${{ matrix.os }}
5252
steps:
53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v5
5454
- uses: actions-rs/toolchain@v1
5555
with:
5656
profile: minimal

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tokio = { version = "1", features = ["rt"] }
2626

2727
[target.'cfg(target_os = "linux")'.dependencies]
2828
nix = { version = "0.30", features = ["fs", "mount", "process"] }
29-
rtnetlink = "0.17"
29+
rtnetlink = "0.18"
3030
tempfile = "3"
3131

3232
[target.'cfg(target_os = "macos")'.dependencies]

src/private_ip.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use regex::Regex;
22

33
pub fn is_private_ip(ip: std::net::IpAddr) -> bool {
4-
if let std::net::IpAddr::V4(addr) = ip {
5-
if ip_v4_is_private(&addr) {
6-
return true;
7-
}
4+
if let std::net::IpAddr::V4(addr) = ip
5+
&& ip_v4_is_private(&addr)
6+
{
7+
return true;
88
}
99

1010
let patterns = [

0 commit comments

Comments
 (0)