ソースを参照

chore: cleanup hosts imports

draoi 2 年 前
コミット
4abc12207a
1 ファイル変更7 行追加2 行削除
  1. 7 2
      src/net/hosts.rs

+ 7 - 2
src/net/hosts.rs

@@ -16,12 +16,17 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
  */
 
 
-use std::{collections::HashMap, fmt, fs, fs::File, sync::Arc, time::Instant};
+use std::{
+    collections::HashMap,
+    fmt, fs,
+    fs::File,
+    sync::{Arc, Mutex},
+    time::Instant,
+};
 
 
 use log::{debug, error, info, trace, warn};
 use log::{debug, error, info, trace, warn};
 use rand::{prelude::IteratorRandom, rngs::OsRng, Rng};
 use rand::{prelude::IteratorRandom, rngs::OsRng, Rng};
 use smol::lock::RwLock;
 use smol::lock::RwLock;
-use std::sync::Mutex;
 use url::Url;
 use url::Url;
 
 
 use super::{settings::SettingsPtr, ChannelPtr};
 use super::{settings::SettingsPtr, ChannelPtr};