Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Mar 13, 2024
1 parent 04b3948 commit 216bf1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/meta/dashboard/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down
2 changes: 2 additions & 0 deletions src/meta/dashboard/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions src/meta/src/dashboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 216bf1e

Please sign in to comment.