Skip to content

Commit

Permalink
Group imports into one group (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo authored Apr 6, 2024
1 parent a4e3dd4 commit ef11e50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
group_imports = "One"
max_width = 160
tab_spaces = 2
imports_granularity = "Module"
3 changes: 1 addition & 2 deletions src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,11 @@ mod tests {
}

mod rta_arguments {
use big_s::S;

use super::parse_args;
use crate::cli::{Args, Command};
use crate::config::{AppName, Version};
use crate::prelude::*;
use big_s::S;

mod available {
use super::super::parse_args;
Expand Down
3 changes: 1 addition & 2 deletions src/cmd/which.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use super::run::load_or_install;
use crate::config::{AppName, RequestedVersions, Version};
use crate::prelude::*;
use crate::{apps, logger, platform, yard};
use std::process::ExitCode;

use super::run::load_or_install;

pub fn which(app_name: &AppName, version: Option<Version>, verbose: bool) -> Result<ExitCode> {
let apps = apps::all();
let app = apps.lookup(app_name)?;
Expand Down
11 changes: 5 additions & 6 deletions src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ pub mod download_archive;
pub mod download_executable;
pub mod other_app_folder;

pub use compile_go::CompileGoSource;
pub use compile_rust::CompileRustSource;
pub use download_archive::DownloadArchive;
pub use download_executable::DownloadExecutable;
pub use other_app_folder::ViaAnotherApp;

use crate::config::{AppName, Version};
use crate::logger::{Event, Log};
use crate::platform::Platform;
use crate::prelude::*;
use crate::subshell::Executable;
use crate::yard::Yard;
pub use compile_go::CompileGoSource;
pub use compile_rust::CompileRustSource;
pub use download_archive::DownloadArchive;
pub use download_executable::DownloadExecutable;
pub use other_app_folder::ViaAnotherApp;

/// the different methods to install an application
pub enum Method<'a> {
Expand Down

0 comments on commit ef11e50

Please sign in to comment.