From 0eafd6a264aef208abd93ed552d8fc3c716d5a17 Mon Sep 17 00:00:00 2001 From: GW_MC <72297530+GWMCwing@users.noreply.github.com> Date: Mon, 22 Dec 2025 18:26:19 +0800 Subject: [PATCH] feat: upgrade actions/cache to v4 and clean up imports in main.rs --- .github/actions/setup-rust/action.yml | 6 +++--- apps/agent/src/main.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml index a55a77b..f6a46a2 100644 --- a/.github/actions/setup-rust/action.yml +++ b/.github/actions/setup-rust/action.yml @@ -22,7 +22,7 @@ runs: fetch-depth: 0 - name: Cache cargo registry - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} @@ -30,7 +30,7 @@ runs: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cargo/index key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} @@ -51,7 +51,7 @@ runs: ${{ runner.os }}-rustup- - name: Cache cargo build (target) - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: target key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} diff --git a/apps/agent/src/main.rs b/apps/agent/src/main.rs index 72fdaff..149ec53 100644 --- a/apps/agent/src/main.rs +++ b/apps/agent/src/main.rs @@ -5,7 +5,7 @@ mod routes; use axum::routing::get; use axum::{Router, routing::post}; -use clap::{Parser, command}; +use clap::Parser; use std::os::unix::fs::PermissionsExt; use std::path::PathBuf; use std::sync::Arc;