diff --git a/src/cli/run.rs b/src/cli/run.rs index 6408372..5c7bb3c 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -3,13 +3,6 @@ use std::fmt::Write as _; use std::io::Write as _; use std::path::{Path, PathBuf}; -use crate::cli::ExitStatus; -use crate::config::Stage; -use crate::git::{get_all_files, get_changed_files, get_diff, get_staged_files}; -use crate::hook::{Hook, Project}; -use crate::identify::tags_from_path; -use crate::printer::Printer; -use crate::store::Store; use anyhow::Result; use futures::stream::FuturesUnordered; use futures::StreamExt; @@ -21,6 +14,14 @@ use tokio::process::Command; use tracing::{debug, trace}; use unicode_width::UnicodeWidthStr; +use crate::cli::ExitStatus; +use crate::config::Stage; +use crate::git::{get_all_files, get_changed_files, get_diff, get_staged_files}; +use crate::hook::{Hook, Project}; +use crate::identify::tags_from_path; +use crate::printer::Printer; +use crate::store::Store; + #[allow(clippy::too_many_arguments)] pub(crate) async fn run( config: Option, diff --git a/src/languages/mod.rs b/src/languages/mod.rs index 2d4e256..b0e4a88 100644 --- a/src/languages/mod.rs +++ b/src/languages/mod.rs @@ -1,7 +1,3 @@ -mod node; -mod python; -mod system; - use std::fmt::{Debug, Display}; use std::process::Output; @@ -10,6 +6,10 @@ use anyhow::Result; use crate::config; use crate::hook::Hook; +mod node; +mod python; +mod system; + pub const DEFAULT_VERSION: &str = "default"; trait LanguageImpl { diff --git a/src/languages/node.rs b/src/languages/node.rs index cc596d7..554f771 100644 --- a/src/languages/node.rs +++ b/src/languages/node.rs @@ -1,7 +1,8 @@ +use std::process::{ExitStatus, Output}; + use crate::config; use crate::hook::Hook; use crate::languages::{LanguageImpl, DEFAULT_VERSION}; -use std::process::{ExitStatus, Output}; #[derive(Debug, Copy, Clone)] pub struct Node; diff --git a/src/languages/python.rs b/src/languages/python.rs index e5356ed..c838440 100644 --- a/src/languages/python.rs +++ b/src/languages/python.rs @@ -1,11 +1,12 @@ use std::path::{Path, PathBuf}; use std::process::Output; +use assert_cmd::output::{OutputError, OutputOkExt}; +use tokio::process::Command; + use crate::config; use crate::hook::Hook; use crate::languages::LanguageImpl; -use assert_cmd::output::{OutputError, OutputOkExt}; -use tokio::process::Command; #[derive(Debug, Copy, Clone)] pub struct Python; diff --git a/src/languages/system.rs b/src/languages/system.rs index 0dbe10f..8308162 100644 --- a/src/languages/system.rs +++ b/src/languages/system.rs @@ -1,7 +1,8 @@ +use std::process::Output; + use crate::config; use crate::hook::Hook; use crate::languages::{LanguageImpl, DEFAULT_VERSION}; -use std::process::Output; #[derive(Debug, Copy, Clone)] pub struct System;