diff --git a/cli/src/command/append.rs b/cli/src/command/append.rs index 45fe00c1..fcbbe7b6 100644 --- a/cli/src/command/append.rs +++ b/cli/src/command/append.rs @@ -91,6 +91,7 @@ pub(crate) struct AppendCommand { } impl Command for AppendCommand { + #[inline] fn execute(self) -> io::Result<()> { append_to_archive(self) } diff --git a/cli/src/command/chmod.rs b/cli/src/command/chmod.rs index e68a7321..72afbd56 100644 --- a/cli/src/command/chmod.rs +++ b/cli/src/command/chmod.rs @@ -30,6 +30,7 @@ pub(crate) struct ChmodCommand { } impl Command for ChmodCommand { + #[inline] fn execute(self) -> io::Result<()> { archive_chmod(self) } diff --git a/cli/src/command/chown.rs b/cli/src/command/chown.rs index 0ae06ddc..b7f682d1 100644 --- a/cli/src/command/chown.rs +++ b/cli/src/command/chown.rs @@ -29,6 +29,7 @@ pub(crate) struct ChownCommand { } impl Command for ChownCommand { + #[inline] fn execute(self) -> io::Result<()> { archive_chown(self) } diff --git a/cli/src/command/complete.rs b/cli/src/command/complete.rs index 08396306..b1a7bc16 100644 --- a/cli/src/command/complete.rs +++ b/cli/src/command/complete.rs @@ -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); diff --git a/cli/src/command/concat.rs b/cli/src/command/concat.rs index e24657a0..4b798756 100644 --- a/cli/src/command/concat.rs +++ b/cli/src/command/concat.rs @@ -16,6 +16,7 @@ pub(crate) struct ConcatCommand { } impl Command for ConcatCommand { + #[inline] fn execute(self) -> io::Result<()> { concat_entry(self) } diff --git a/cli/src/command/create.rs b/cli/src/command/create.rs index 6c12bd03..80418833 100644 --- a/cli/src/command/create.rs +++ b/cli/src/command/create.rs @@ -104,6 +104,7 @@ pub(crate) struct CreateCommand { } impl Command for CreateCommand { + #[inline] fn execute(self) -> io::Result<()> { create_archive(self) } diff --git a/cli/src/command/delete.rs b/cli/src/command/delete.rs index bb14c286..af14c620 100644 --- a/cli/src/command/delete.rs +++ b/cli/src/command/delete.rs @@ -28,6 +28,7 @@ pub(crate) struct DeleteCommand { } impl Command for DeleteCommand { + #[inline] fn execute(self) -> io::Result<()> { delete_file_from_archive(self) } diff --git a/cli/src/command/experimental.rs b/cli/src/command/experimental.rs index d90ae10b..3a362d94 100644 --- a/cli/src/command/experimental.rs +++ b/cli/src/command/experimental.rs @@ -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(), diff --git a/cli/src/command/extract.rs b/cli/src/command/extract.rs index 06a3a0e7..e1d35398 100644 --- a/cli/src/command/extract.rs +++ b/cli/src/command/extract.rs @@ -77,6 +77,7 @@ pub(crate) struct ExtractCommand { } impl Command for ExtractCommand { + #[inline] fn execute(self) -> io::Result<()> { extract_archive(self) } diff --git a/cli/src/command/list.rs b/cli/src/command/list.rs index 08dc45fe..a1d9e916 100644 --- a/cli/src/command/list.rs +++ b/cli/src/command/list.rs @@ -75,6 +75,7 @@ pub(crate) struct ListCommand { } impl Command for ListCommand { + #[inline] fn execute(self) -> io::Result<()> { list_archive(self) } diff --git a/cli/src/command/split.rs b/cli/src/command/split.rs index 22e061e7..4d02a8e5 100644 --- a/cli/src/command/split.rs +++ b/cli/src/command/split.rs @@ -20,6 +20,7 @@ pub(crate) struct SplitCommand { } impl Command for SplitCommand { + #[inline] fn execute(self) -> io::Result<()> { split_archive(self) } diff --git a/cli/src/command/stdio.rs b/cli/src/command/stdio.rs index 8737f37e..7a50a1cc 100644 --- a/cli/src/command/stdio.rs +++ b/cli/src/command/stdio.rs @@ -108,6 +108,7 @@ pub(crate) struct StdioCommand { } impl Command for StdioCommand { + #[inline] fn execute(self) -> io::Result<()> { run_stdio(self) } diff --git a/cli/src/command/strip.rs b/cli/src/command/strip.rs index 91748840..0f72ee74 100644 --- a/cli/src/command/strip.rs +++ b/cli/src/command/strip.rs @@ -43,6 +43,7 @@ pub(crate) struct StripCommand { } impl Command for StripCommand { + #[inline] fn execute(self) -> io::Result<()> { strip_metadata(self) } diff --git a/cli/src/command/update.rs b/cli/src/command/update.rs index bc987fb8..3e8358aa 100644 --- a/cli/src/command/update.rs +++ b/cli/src/command/update.rs @@ -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 => { diff --git a/cli/src/command/xattr.rs b/cli/src/command/xattr.rs index f0d7cd1f..96d2d84e 100644 --- a/cli/src/command/xattr.rs +++ b/cli/src/command/xattr.rs @@ -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(), @@ -59,6 +60,7 @@ pub(crate) struct GetXattrCommand { } impl Command for GetXattrCommand { + #[inline] fn execute(self) -> io::Result<()> { archive_get_xattr(self) } @@ -83,6 +85,7 @@ pub(crate) struct SetXattrCommand { } impl Command for SetXattrCommand { + #[inline] fn execute(self) -> io::Result<()> { archive_set_xattr(self) }