Skip to content

Commit d427a14

Browse files
committed
minor fixes
1 parent c1c3a26 commit d427a14

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/command.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ pub struct Command<C> {
88
pub executor: Executor<C>,
99
}
1010

11-
pub fn async_executor<C, F, Fut, R>(
12-
f: F,
13-
) -> Box<dyn Fn(Arc<C>) -> Pin<Box<dyn Future<Output = Box<dyn Any + Send>> + Send>> + Send + Sync>
11+
pub fn async_executor<C, F, Fut, R>(f: F) -> Executor<C>
1412
where
1513
F: Fn(Arc<C>) -> Fut + Send + Sync + 'static,
1614
Fut: Future<Output = R> + Send + 'static,

src/semantic_commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl<E: Embedder, Ch: Cache, C> SemanticCommands<E, Ch, C> {
112112
Some((_input, command)) => {
113113
info!("command recognized as: {:?}", command.name);
114114
let result = (command.executor)(context).await;
115-
return Ok(result);
115+
Ok(result)
116116
}
117117
None => {
118118
bail!("no similar command found");

0 commit comments

Comments
 (0)