From 1b93a026c2bbc773e220c83d615f2374ada4de91 Mon Sep 17 00:00:00 2001 From: shuiyisong <113876041+shuiyisong@users.noreply.github.com> Date: Tue, 7 May 2024 11:00:38 +0800 Subject: [PATCH] ci: align clippy checks and fixup (#3868) * fix: make clippy * fix: use make in CI --- .github/workflows/develop.yml | 2 +- src/servers/src/http/pprof.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 4c64b85e3c..c90d718e28 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -326,7 +326,7 @@ jobs: # Shares with `Check` job shared-key: "check-lint" - name: Run cargo clippy - run: cargo clippy --workspace --all-targets -- -D warnings + run: make clippy coverage: if: github.event.pull_request.draft == false diff --git a/src/servers/src/http/pprof.rs b/src/servers/src/http/pprof.rs index 1a4b282426..12479444db 100644 --- a/src/servers/src/http/pprof.rs +++ b/src/servers/src/http/pprof.rs @@ -23,6 +23,7 @@ pub mod handler { use axum::extract::Query; use axum::http::StatusCode; use axum::response::IntoResponse; + use common_telemetry::info; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; use snafu::ResultExt;