mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
chore: Clippy lint
This commit is contained in:
@@ -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},
|
||||
|
||||
@@ -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::{
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user