Skip to content

Commit

Permalink
refactor: reorder imports for improved organization and clarity in tr…
Browse files Browse the repository at this point in the history
…ansfer module
  • Loading branch information
Kremilly committed Feb 11, 2025
1 parent b68da78 commit 548fa56
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/transfer.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
use regex::Regex;
use flate2::read::GzDecoder;

use mysql::{
*,
prelude::*
};

use std::{
fs::File,
Expand All @@ -20,6 +14,12 @@ use std::{
PathBuf
},
};
use flate2::read::GzDecoder;

use mysql::{
*,
prelude::*
};

use crate::{
constants::regexp::RegExp,
Expand Down Expand Up @@ -64,7 +64,7 @@ impl Transfer {
}
}

fn complete_path(&self) -> Result<PathBuf, Box<dyn std::error::Error>> {
fn complete_path(&self) -> Result<PathBuf, Box<dyn Error>> {
let path = Path::new(&self.dump_file_path);

if path.is_absolute() {
Expand Down

0 comments on commit 548fa56

Please sign in to comment.