clean up warnings and fix tests in the ai crate

This commit is contained in:
KCaverly 2023-10-30 11:07:24 -04:00
parent a2c3971ad6
commit f3c113fe02
5 changed files with 102 additions and 143 deletions

View file

@ -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()
}
}