From 4ddaf503a8da02990432229262ce850fbf5f320e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:56:02 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/commands.rs | 4 ++-- src/commands/extract.rs | 25 ++++++++++++++++++++++--- src/commands/version.rs | 2 +- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index f7d3d48..5cee882 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -1,4 +1,4 @@ +pub mod extract; +pub mod list; pub mod metadata; pub mod version; -pub mod list; -pub mod extract; \ No newline at end of file diff --git a/src/commands/extract.rs b/src/commands/extract.rs index ab40e82..9b0f15c 100644 --- a/src/commands/extract.rs +++ b/src/commands/extract.rs @@ -1,5 +1,24 @@ use corelib::{archive, formats}; -pub fn extract(format: String, input: String, output: String, index: Option, path: Option, all: bool, check_integrity: bool, buffer_size: u64) { - archive::extract(formats::from_string(&format), input, output, index, path, all, check_integrity, buffer_size).unwrap(); -} \ No newline at end of file +pub fn extract( + format: String, + input: String, + output: String, + index: Option, + path: Option, + all: bool, + check_integrity: bool, + buffer_size: u64, +) { + archive::extract( + formats::from_string(&format), + input, + output, + index, + path, + all, + check_integrity, + buffer_size, + ) + .unwrap(); +} diff --git a/src/commands/version.rs b/src/commands/version.rs index 2e1d388..6392aaf 100644 --- a/src/commands/version.rs +++ b/src/commands/version.rs @@ -2,4 +2,4 @@ pub fn version() { println!("Acridotheres\n"); println!("cli v{}", env!("CARGO_PKG_VERSION")); println!("core v{}", corelib::get_version()); -} \ No newline at end of file +}