organize import order

This commit is contained in:
grimhilt
2023-06-19 18:31:03 +02:00
parent 8b3ba64e48
commit 4842a20024
18 changed files with 39 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
use crate::utils::path;
use regex::Regex;
use std::fs::File;
use std::io::{BufReader, BufRead};
use regex::Regex;
use crate::utils::path;
pub fn read_lines() -> Result<Vec<String>, ()> {
if let Some(path) = path::nextsyncignore() {

View File

@@ -1,7 +1,7 @@
use std::env;
use std::fs::canonicalize;
use std::path::{PathBuf, Path};
use crate::global::global::DIR_PATH;
use std::fs::canonicalize;
pub fn current() -> Option<PathBuf> {
let d = DIR_PATH.lock().unwrap();

View File

@@ -1,6 +1,6 @@
use std::path::{Path, PathBuf};
use std::io::{self, BufRead, BufReader, Write};
use std::fs::{self, File, OpenOptions};
use std::io::{self, BufRead, BufReader, Write};
pub fn read_lines<P>(filename: P) -> io::Result<io::Lines<io::BufReader<File>>>
where P: AsRef<Path>, {