chore: Clippy lint

This commit is contained in:
x
2025-11-13 13:17:46 +00:00
committed by skoupidi
parent a28fc42fb8
commit f9ee611b58
3 changed files with 3 additions and 4 deletions

View File

@@ -26,8 +26,8 @@ use darkfi_sdk::{
monotree::{MemoryDb, Monotree, SledOverlayDb, SledTreeDb, EMPTY_HASH},
};
use darkfi_serial::{deserialize, serialize};
use tracing::{debug, error};
use sled_overlay::{serial::parse_record, sled};
use tracing::{debug, error};
use crate::{
zk::{empty_witnesses, VerifyingKey, ZkCircuit},

View File

@@ -16,7 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use log::info;
use rand::rngs::OsRng;
use darkfi::{

View File

@@ -49,7 +49,7 @@ use tracing::{debug, error, warn};
use url::Url;
use super::{PtListener, PtStream};
use crate::util::{logger::verbose, encoding::base32, path::expand_path};
use crate::util::{encoding::base32, logger::verbose, path::expand_path};
/// A static for `TorClient` reusability
static TOR_CLIENT: OnceCell<TorClient<PreferredRuntime>> = OnceCell::new();
@@ -244,7 +244,7 @@ impl TorListener {
"[P2P] Established Tor listener on tor://{}:{port}", onion_id,
);
let endpoint = Url::parse(&format!("tor://{}:{port}", onion_id)).unwrap();
let endpoint = Url::parse(&format!("tor://{onion_id}:{port}")).unwrap();
self.endpoint.set(endpoint).await.expect("fatal endpoint already set for TorListener");
Ok(TorListenerIntern {