diff --git a/src/cmd_args.rs b/src/cmd_args.rs index 32f495b..c007fb8 100644 --- a/src/cmd_args.rs +++ b/src/cmd_args.rs @@ -1,7 +1,7 @@ //! CLI arguments -use crate::path; use crate::PathBuf; +use crate::path; use clap::Args; use clap::{Parser, Subcommand}; use clap_verbosity_flag::Verbosity; diff --git a/src/cmd_init.rs b/src/cmd_init.rs index 7207202..c9d6d8a 100644 --- a/src/cmd_init.rs +++ b/src/cmd_init.rs @@ -2,11 +2,13 @@ //! Initialize xdbm for the device. use crate::backups::Backups; -use crate::storages::{Storages, STORAGESFILE}; +use crate::storages::{STORAGESFILE, Storages}; use crate::{ - add_and_commit, backups, full_status, get_devices, write_devices, Device, DEVICESFILE, + DEVICESFILE, Device, add_and_commit, backups, + devices::{get_devices, write_devices}, + full_status, }; -use anyhow::{anyhow, Context, Ok, Result}; +use anyhow::{Context, Ok, Result, anyhow}; use core::panic; use git2::{Cred, RemoteCallbacks, Repository}; use inquire::Password; diff --git a/src/main.rs b/src/main.rs index 0f70238..f8533c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ use std::path::{self, PathBuf}; use storages::Storages; use crate::cmd_args::{BackupSubCommands, Cli, Commands, StorageCommands}; -use devices::{Device, DEVICESFILE, *}; +use devices::{DEVICESFILE, Device}; mod backups; mod cmd_args;