From 1786f999a8372e79c7426e95f95edfe769cf0f30 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 8 Sep 2025 22:19:13 +0300 Subject: [PATCH] move some namespaces to the local scope --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 244c76f..8a08de2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,8 +4,6 @@ mod route; use anyhow::Result; use btracker_fs::public::{Order, Public, Sort, Torrent}; -use chrono::Local; -use clap::Parser; use config::Config; use librqbit_core::torrent_metainfo::{TorrentMetaV1Owned, torrent_from_bytes}; use log::*; @@ -20,6 +18,9 @@ use std::{ }; fn main() -> Result<()> { + use chrono::Local; + use clap::Parser; + if std::env::var("RUST_LOG").is_ok() { use tracing_subscriber::{EnvFilter, fmt::*}; struct T;