move some namespaces to the local scope

This commit is contained in:
yggverse 2025-09-08 22:19:13 +03:00
parent ea47c33e5a
commit 1786f999a8

View file

@ -4,8 +4,6 @@ mod route;
use anyhow::Result; use anyhow::Result;
use btracker_fs::public::{Order, Public, Sort, Torrent}; use btracker_fs::public::{Order, Public, Sort, Torrent};
use chrono::Local;
use clap::Parser;
use config::Config; use config::Config;
use librqbit_core::torrent_metainfo::{TorrentMetaV1Owned, torrent_from_bytes}; use librqbit_core::torrent_metainfo::{TorrentMetaV1Owned, torrent_from_bytes};
use log::*; use log::*;
@ -20,6 +18,9 @@ use std::{
}; };
fn main() -> Result<()> { fn main() -> Result<()> {
use chrono::Local;
use clap::Parser;
if std::env::var("RUST_LOG").is_ok() { if std::env::var("RUST_LOG").is_ok() {
use tracing_subscriber::{EnvFilter, fmt::*}; use tracing_subscriber::{EnvFilter, fmt::*};
struct T; struct T;