From b0891c3ff11dd05c475a2b0f0e722b6b0e1aab5c Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 14 Sep 2025 18:09:58 +0800 Subject: chore: pub(crate) -> pub for same visibility --- src/client/executor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/executor.rs') diff --git a/src/client/executor.rs b/src/client/executor.rs index 7f11941..8ef98b5 100644 --- a/src/client/executor.rs +++ b/src/client/executor.rs @@ -1,15 +1,15 @@ use crate::executor::tasks::{IntoTask, IntoTaskErr, Task}; -pub(crate) mod tasks; +pub mod tasks; -pub(crate) struct Executor { +pub struct Executor { task: &'static Task, args: Box<[String]>, output: Option>, } impl Executor { - pub(crate) fn new( + pub fn new( task: impl IntoTask, args: impl IntoIterator, ) -> Result { @@ -21,7 +21,7 @@ impl Executor { }) } - pub(crate) fn run(&mut self) -> Option<&Result> { + pub fn run(&mut self) -> Option<&Result> { self.output = Some((self.task.exec)(&self.args)); self.output.as_ref() } -- cgit v1.2.3