clean up warnings and fix tests in the ai crate
This commit is contained in:
parent
a2c3971ad6
commit
f3c113fe02
5 changed files with 102 additions and 143 deletions
|
@ -13,4 +13,11 @@ pub trait CompletionProvider: CredentialProvider {
|
|||
&self,
|
||||
prompt: Box<dyn CompletionRequest>,
|
||||
) -> BoxFuture<'static, Result<BoxStream<'static, Result<String>>>>;
|
||||
fn box_clone(&self) -> Box<dyn CompletionProvider>;
|
||||
}
|
||||
|
||||
impl Clone for Box<dyn CompletionProvider> {
|
||||
fn clone(&self) -> Box<dyn CompletionProvider> {
|
||||
self.box_clone()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue