Cargo fmt

i18n
Michal 2 years ago
parent ab5e337012
commit 468d7027e3

@ -1,7 +1,7 @@
use crate::internal::strings::prompt; use crate::internal::commands::ShellCommand;
use crate::internal::error::SilentUnwrap; use crate::internal::error::SilentUnwrap;
use crate::internal::exit_code::AppExitCode; use crate::internal::exit_code::AppExitCode;
use crate::internal::commands::ShellCommand; use crate::internal::strings::prompt;
pub fn detect() { pub fn detect() {
let mut pacnew = vec![]; let mut pacnew = vec![];
@ -9,7 +9,8 @@ pub fn detect() {
for entry in std::fs::read_dir("/etc").unwrap() { for entry in std::fs::read_dir("/etc").unwrap() {
let entry = entry.unwrap(); let entry = entry.unwrap();
let path = entry.path(); let path = entry.path();
if path.to_str().unwrap().contains(".pacnew") || path.to_str().unwrap().contains(".pacsave") { if path.to_str().unwrap().contains(".pacnew") || path.to_str().unwrap().contains(".pacsave")
{
pacnew.push(path); pacnew.push(path);
} }
} }

@ -1,5 +1,6 @@
mod clean; mod clean;
pub mod commands; pub mod commands;
mod detect;
pub mod error; pub mod error;
pub mod exit_code; pub mod exit_code;
mod initialise; mod initialise;
@ -7,14 +8,13 @@ pub mod rpc;
mod sort; mod sort;
mod strings; mod strings;
pub mod structs; pub mod structs;
mod detect;
pub use clean::*; pub use clean::*;
pub use detect::*;
pub use initialise::*; pub use initialise::*;
pub use sort::*; pub use sort::*;
use std::env; use std::env;
pub use strings::*; pub use strings::*;
pub use detect::*;
#[macro_export] #[macro_export]
macro_rules! uwu { macro_rules! uwu {

@ -5,10 +5,10 @@ use args::Args;
use internal::commands::ShellCommand; use internal::commands::ShellCommand;
use internal::error::SilentUnwrap; use internal::error::SilentUnwrap;
use crate::internal::detect;
use crate::internal::exit_code::AppExitCode; use crate::internal::exit_code::AppExitCode;
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::internal::{crash, info, init, log, prompt, sort, structs::Options, warn}; use crate::internal::{crash, info, init, log, prompt, sort, structs::Options, warn};
use crate::internal::detect;
#[global_allocator] #[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

Loading…
Cancel
Save