Repository: tikv/tikv (language: rust)

Issue:
Make clippy failed to install cargo-deny
## Bug Report

```shell
$ make clippy
info: component 'clippy' for target 'aarch64-apple-darwin' is up to date
Security check passed.
Log style check passed.
./metrics/grafana/tikv_details.json: OK
Dashboards check passed.
Docker build check passed.
License check passed.
    Updating crates.io index
  Installing cargo-deny v0.14.3
    Updating crates.io index
warning: profile package spec `insta` in profile `dev` did not match any packages

        Did you mean `bstr`?
warning: profile package spec `similar` in profile `dev` did not match any packages
error: failed to compile `cargo-deny v0.14.3`, intermediate artifacts can be found at `/var/folders/l4/mhxyx7851cq8mxshxt5vsyq40000gn/T/cargo-installXdA3Wh`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  package `cargo-platform v0.1.9` cannot be built because it requires rustc 1.78 or newer, while the currently active rustc version is 1.77.0-nightly
  Try re-running cargo install with `--locked`
```


Discussion / hints:

Fix patch:
diff --git a/scripts/deny b/scripts/deny
index 593f4ce32bd..51930bc56f5 100755
--- a/scripts/deny
+++ b/scripts/deny
@@ -2,7 +2,8 @@
 
 set -euo pipefail
 
-cargo install cargo-deny@0.14.3 2> /dev/null || echo "Install cargo-deny failed"
+# Update cargo-deny to the 0.15.1 version to fix the issue reported by https://github.com/tikv/tikv/pull/17987.
+cargo install --locked cargo-deny@0.15.1 2> /dev/null || echo "Install cargo-deny failed"
 cargo deny -V
 cargo deny fetch all
 cargo deny check --show-stats


Test patch: