Skip to content

Commit

Permalink
fix rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stevefan1999-personal committed Jul 20, 2024
1 parent 8739a31 commit 0255b9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cling/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ use _private::*;

#[doc(hidden)]
pub trait Run: Send + Sync {
fn call<'a>(&'a self, args: &'a mut CollectedArgs) -> std::pin::Pin<Box<dyn std::future::Future<Output = Result<(), CliError>> + Send + 'a>>;
fn call<'a>(
&'a self,
args: &'a mut CollectedArgs,
) -> std::pin::Pin<
Box<dyn std::future::Future<Output = Result<(), CliError>> + Send + 'a>,
>;
}

type ClingReady<T> = Cling<T, Ready>;
Expand Down
4 changes: 3 additions & 1 deletion cling/src/effects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ where
pub trait IntoEffect<Type> {
type Effect: HandlerEffect;

fn into_effect(self) -> impl std::future::Future<Output = Result<Self::Effect, CliError>> + Send;
fn into_effect(
self,
) -> impl std::future::Future<Output = Result<Self::Effect, CliError>> + Send;
}

impl IntoEffect<_Sync> for () {
Expand Down

0 comments on commit 0255b9b

Please sign in to comment.