Skip to content

Commit

Permalink
♻️ Apply inline attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Oct 25, 2024
1 parent b941c5a commit c74f02a
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/command/append.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub(crate) struct AppendCommand {
}

impl Command for AppendCommand {
#[inline]
fn execute(self) -> io::Result<()> {
append_to_archive(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/chmod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub(crate) struct ChmodCommand {
}

impl Command for ChmodCommand {
#[inline]
fn execute(self) -> io::Result<()> {
archive_chmod(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/chown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub(crate) struct ChownCommand {
}

impl Command for ChownCommand {
#[inline]
fn execute(self) -> io::Result<()> {
archive_chown(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub(crate) struct CompleteCommand {
}

impl Command for CompleteCommand {
#[inline]
fn execute(self) -> io::Result<()> {
let cmd = &mut Cli::command();
print_completions(self.shell, cmd);
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/concat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub(crate) struct ConcatCommand {
}

impl Command for ConcatCommand {
#[inline]
fn execute(self) -> io::Result<()> {
concat_entry(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub(crate) struct CreateCommand {
}

impl Command for CreateCommand {
#[inline]
fn execute(self) -> io::Result<()> {
create_archive(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub(crate) struct DeleteCommand {
}

impl Command for DeleteCommand {
#[inline]
fn execute(self) -> io::Result<()> {
delete_file_from_archive(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/experimental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub(crate) struct ExperimentalCommand {
}

impl Command for ExperimentalCommand {
#[inline]
fn execute(self) -> io::Result<()> {
match self.command {
ExperimentalCommands::Stdio(cmd) => cmd.execute(),
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pub(crate) struct ExtractCommand {
}

impl Command for ExtractCommand {
#[inline]
fn execute(self) -> io::Result<()> {
extract_archive(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pub(crate) struct ListCommand {
}

impl Command for ListCommand {
#[inline]
fn execute(self) -> io::Result<()> {
list_archive(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub(crate) struct SplitCommand {
}

impl Command for SplitCommand {
#[inline]
fn execute(self) -> io::Result<()> {
split_archive(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ pub(crate) struct StdioCommand {
}

impl Command for StdioCommand {
#[inline]
fn execute(self) -> io::Result<()> {
run_stdio(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/strip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub(crate) struct StripCommand {
}

impl Command for StripCommand {
#[inline]
fn execute(self) -> io::Result<()> {
strip_metadata(self)
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/command/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pub(crate) struct UpdateCommand {
}

impl Command for UpdateCommand {
#[inline]
fn execute(self) -> io::Result<()> {
match self.transform_strategy.strategy() {
SolidEntriesTransformStrategy::UnSolid => {
Expand Down
3 changes: 3 additions & 0 deletions cli/src/command/xattr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub(crate) struct XattrCommand {
}

impl Command for XattrCommand {
#[inline]
fn execute(self) -> io::Result<()> {
match self.command {
XattrCommands::Get(cmd) => cmd.execute(),
Expand Down Expand Up @@ -59,6 +60,7 @@ pub(crate) struct GetXattrCommand {
}

impl Command for GetXattrCommand {
#[inline]
fn execute(self) -> io::Result<()> {
archive_get_xattr(self)
}
Expand All @@ -83,6 +85,7 @@ pub(crate) struct SetXattrCommand {
}

impl Command for SetXattrCommand {
#[inline]
fn execute(self) -> io::Result<()> {
archive_set_xattr(self)
}
Expand Down

0 comments on commit c74f02a

Please sign in to comment.