Skip to content

Commit

Permalink
qfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fominok committed Jul 25, 2024
1 parent 4408fca commit ae7615e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions grovedb/src/debugger.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! GroveDB debugging support module.
use std::{collections::BTreeMap, fs, net::Ipv4Addr, sync::Weak};
use std::{collections::BTreeMap, fs, sync::Weak};

use axum::{extract::State, http::StatusCode, response::IntoResponse, routing::post, Json, Router};
use grovedb_merk::{
Expand All @@ -11,8 +11,8 @@ use grovedb_merk::{
use grovedb_path::SubtreePath;
use grovedb_version::version::GroveVersion;
use grovedbg_types::{
Key, MerkProofNode, MerkProofOp, NodeFetchRequest, NodeUpdate, Path, PathQuery, Query,
QueryItem, SizedQuery, SubqueryBranch,
MerkProofNode, MerkProofOp, NodeFetchRequest, NodeUpdate, Path, PathQuery, Query, QueryItem,
SizedQuery, SubqueryBranch,
};
use indexmap::IndexMap;
use tokio::{
Expand All @@ -38,12 +38,11 @@ where
let grovedbg_tmp =
tempfile::tempdir().expect("cannot create tempdir for grovedbg contents");
let grovedbg_zip = grovedbg_tmp.path().join("grovedbg.zip");
// let grovedbg_www = grovedbg_tmp.path().join("grovedbg_www");
let grovedbg_www = "/home/yolo/dash/grovedbg/dist";
let grovedbg_www = grovedbg_tmp.path().join("grovedbg_www");

// fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip");
// zip_extensions::read::zip_extract(&grovedbg_zip, &grovedbg_www)
// .expect("cannot extract grovedbg contents");
fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip");

Check warning on line 43 in grovedb/src/debugger.rs

View workflow job for this annotation

GitHub Actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits --> grovedb/src/debugger.rs:43:34 | 43 | fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip"); | ^^^^^^^^^^^^^ help: change this to: `GROVEDBG_ZIP` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
zip_extensions::read::zip_extract(&grovedbg_zip, &grovedbg_www)
.expect("cannot extract grovedbg contents");

let (shutdown_send, mut shutdown_receive) = mpsc::channel::<()>(1);
let app = Router::new()
Expand Down

0 comments on commit ae7615e

Please sign in to comment.