diff --git a/.github/workflows/cargo-update.yml b/.github/workflows/cargo-update.yml index d599eab62..a03adb02e 100644 --- a/.github/workflows/cargo-update.yml +++ b/.github/workflows/cargo-update.yml @@ -15,7 +15,7 @@ jobs: UPDATE_BRANCH_NAME: auto-cargo-update steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Cargo update run: cargo update diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d1b59e8d..cfacdd92e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install protoc run: sudo apt-get install -y protobuf-compiler @@ -60,7 +60,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 @@ -99,7 +99,7 @@ jobs: run: sudo apt-get install -yq zip - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: path: cli diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 483c0e07c..c60f5a069 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install Rust nightly toolchain run: rustup toolchain install --no-self-update nightly --profile minimal -c rustfmt @@ -41,7 +41,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - if: ${{ runner.os == 'macOS' }} name: Install protoc @@ -72,7 +72,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - if: ${{ runner.os == 'macOS' }} name: Install protoc @@ -100,7 +100,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - if: ${{ runner.os == 'macOS' }} name: Install protoc @@ -131,7 +131,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - if: ${{ runner.os == 'macOS' }} name: Install protoc @@ -155,7 +155,7 @@ jobs: container: denoland/deno steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: deno fmt run: deno fmt --check @@ -171,7 +171,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Script Style Check run: find . -iname "*.sh" -print0 | xargs -0 shellcheck -o all -S style -s sh diff --git a/cli/src/print.rs b/cli/src/print.rs index 83b8d7142..9b3c21cb4 100644 --- a/cli/src/print.rs +++ b/cli/src/print.rs @@ -54,7 +54,7 @@ pub fn print_sc_help(mut app: &mut Command, subcommands: &[&str]) -> Result<()> /// Limit a string to a specific length, using an ellipsis to indicate /// truncation. -pub fn truncate(text: &str, max_length: usize) -> Cow { +pub fn truncate(text: &str, max_length: usize) -> Cow<'_, str> { if text.width() > max_length { let mut len = 0; let truncated = text