summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-11 23:48:00 -0400
committerGitHub <noreply@github.com>2024-03-11 23:48:00 -0400
commitad6b00a2bf061a90c72737d0ecc4a58bb0a89550 (patch)
treedaf342fa1d0dcde202a116ac010f310ba4321fa9 /cli/factory.rs
parentc38c14f51f2edc8d25f349de52fc1268b97b59b2 (diff)
chore: enable clippy unused_async rule (#22834)
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index fb4297045..a2755c129 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -83,20 +83,17 @@ impl CliFactoryBuilder {
}
}
- pub async fn build_from_flags(
- self,
- flags: Flags,
- ) -> Result<CliFactory, AnyError> {
+ pub fn build_from_flags(self, flags: Flags) -> Result<CliFactory, AnyError> {
Ok(self.build_from_cli_options(Arc::new(CliOptions::from_flags(flags)?)))
}
- pub async fn build_from_flags_for_watcher(
+ pub fn build_from_flags_for_watcher(
mut self,
flags: Flags,
watcher_communicator: Arc<WatcherCommunicator>,
) -> Result<CliFactory, AnyError> {
self.watcher_communicator = Some(watcher_communicator);
- self.build_from_flags(flags).await
+ self.build_from_flags(flags)
}
pub fn build_from_cli_options(self, options: Arc<CliOptions>) -> CliFactory {
@@ -190,8 +187,8 @@ pub struct CliFactory {
}
impl CliFactory {
- pub async fn from_flags(flags: Flags) -> Result<Self, AnyError> {
- CliFactoryBuilder::new().build_from_flags(flags).await
+ pub fn from_flags(flags: Flags) -> Result<Self, AnyError> {
+ CliFactoryBuilder::new().build_from_flags(flags)
}
pub fn from_cli_options(options: Arc<CliOptions>) -> Self {