Skip to content

Commit 30c604a

Browse files
authored
Merge branch 'main' into dependabot/cargo/ratatui-0.30
2 parents 6f1d654 + e532550 commit 30c604a

4 files changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414
- uses: dtolnay/rust-toolchain@stable
1515
- uses: Swatinem/rust-cache@v2
1616
- run: cargo build --release

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- x86_64-unknown-linux-gnu
1717
- aarch64-unknown-linux-gnu
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020

2121
- name: Install cross and cargo-deb
2222
run: |
@@ -35,7 +35,7 @@ jobs:
3535
run: cargo deb --no-build --no-strip --target ${{ matrix.target }}
3636

3737
- name: Upload artifact
38-
uses: actions/upload-artifact@v4
38+
uses: actions/upload-artifact@v7
3939
with:
4040
name: rdmatop-${{ matrix.target }}
4141
path: |
@@ -47,12 +47,12 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Download artifacts
50-
uses: actions/download-artifact@v4
50+
uses: actions/download-artifact@v8
5151
with:
5252
merge-multiple: true
5353

5454
- name: Create release
55-
uses: softprops/action-gh-release@v2
55+
uses: softprops/action-gh-release@v3
5656
with:
5757
files: |
5858
rdmatop-*.tar.gz

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ assets = [
2121
[dependencies]
2222
libc = "0.2"
2323
ratatui = "0.30"
24-
crossterm = "0.28"
24+
crossterm = "0.29"

src/stat.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,11 @@ fn parse_single_qp(nla: &Nla, dev_name: &str) -> Option<QpInfo> {
177177
for attr in nla.nested() {
178178
match attr.attr_type {
179179
RDMA_NLDEV_ATTR_RES_LQPN => qp.lqpn = attr.u32(),
180-
RDMA_NLDEV_ATTR_RES_TYPE => {
181-
if !attr.data.is_empty() {
182-
qp.qp_type = attr.data[0];
183-
}
180+
RDMA_NLDEV_ATTR_RES_TYPE if !attr.data.is_empty() => {
181+
qp.qp_type = attr.data[0];
184182
}
185-
RDMA_NLDEV_ATTR_RES_STATE => {
186-
if !attr.data.is_empty() {
187-
qp.state = attr.data[0];
188-
}
183+
RDMA_NLDEV_ATTR_RES_STATE if !attr.data.is_empty() => {
184+
qp.state = attr.data[0];
189185
}
190186
RDMA_NLDEV_ATTR_RES_PID => {
191187
qp.pid = attr.u32();

0 commit comments

Comments
 (0)