diff --git a/src/meta/dashboard/build.rs b/src/meta/dashboard/build.rs index 4ca1fff65a345..851c1e199669a 100644 --- a/src/meta/dashboard/build.rs +++ b/src/meta/dashboard/build.rs @@ -55,7 +55,7 @@ fn build() -> anyhow::Result<()> { let dest = dest_dir(); let src = Path::new(DASHBOARD_DIR).join("out"); - dircpy::copy_dir(&src, &dest)?; + dircpy::copy_dir(src, dest)?; Ok(()) } diff --git a/src/meta/dashboard/src/lib.rs b/src/meta/dashboard/src/lib.rs index 244e908c8738e..4414898ebc4ef 100644 --- a/src/meta/dashboard/src/lib.rs +++ b/src/meta/dashboard/src/lib.rs @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![allow(clippy::doc_markdown)] + use axum::Router; mod embed; diff --git a/src/meta/src/dashboard/mod.rs b/src/meta/src/dashboard/mod.rs index 697f90e76703e..0eac865bb2d22 100644 --- a/src/meta/src/dashboard/mod.rs +++ b/src/meta/src/dashboard/mod.rs @@ -14,22 +14,18 @@ mod prometheus; -use std::collections::HashMap; use std::net::SocketAddr; use std::path::Path as FilePath; use std::sync::Arc; use anyhow::{anyhow, Result}; -use axum::body::{boxed, Body}; +use axum::body::boxed; use axum::extract::{Extension, Path}; use axum::http::{Method, StatusCode}; use axum::response::{IntoResponse, Response}; use axum::routing::{get, get_service}; use axum::Router; -use hyper::Request; -use parking_lot::Mutex; use risingwave_rpc_client::ComputeClientPool; -use thiserror_ext::AsReport; use tower::{ServiceBuilder, ServiceExt}; use tower_http::add_extension::AddExtensionLayer; use tower_http::compression::CompressionLayer;