Skip to content

Commit 41b4913

Browse files
moldhouseifsheldon
authored andcommitted
style: add explicit lifetime parameter to methods (64bit#450)
with changes to rust lifetime elision rules, the compiler generates a warning for methods that return a type that has a lifetime parameter tied to &self but are not explicit about it (cherry picked from commit 6becdfc)
1 parent 38f6e65 commit 41b4913

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

async-openai/src/embedding.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ impl<'c, C: Config> Embeddings<'c, C> {
6464

6565
#[cfg(test)]
6666
mod tests {
67-
use crate::error::OpenAIError;
6867
use crate::types::{CreateEmbeddingResponse, Embedding, EncodingFormat};
6968
use crate::{Client, types::CreateEmbeddingRequestArgs};
7069

0 commit comments

Comments
 (0)