diff --git a/src/lib.rs b/src/lib.rs index ed1a21f3..fd205231 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,7 +75,7 @@ impl<'a> From<&'a Deepgram> for Speak<'a> { } } -impl<'a> Transcription<'a> { +impl Transcription<'_> { /// Expose a method to access the inner `Deepgram` reference if needed. pub fn deepgram(&self) -> &Deepgram { self.0 diff --git a/src/listen/websocket.rs b/src/listen/websocket.rs index 5f0b375f..ac81fd3e 100644 --- a/src/listen/websocket.rs +++ b/src/listen/websocket.rs @@ -131,7 +131,6 @@ impl Transcription<'_> { /// /// assert_eq!(&builder.urlencoded().unwrap(), "model=nova-2&detect_language=true&no_delay=true") /// ``` - pub fn stream_request_with_options(&self, options: Options) -> WebsocketBuilder<'_> { WebsocketBuilder { deepgram: self.0, @@ -166,7 +165,7 @@ impl Transcription<'_> { } } -impl<'a> WebsocketBuilder<'a> { +impl WebsocketBuilder<'_> { /// Return the options in urlencoded format. If serialization would /// fail, this will also return an error. /// @@ -331,7 +330,7 @@ impl<'a> WebsocketBuilder<'a> { } } -impl<'a> WebsocketBuilder<'a> { +impl WebsocketBuilder<'_> { pub async fn file( self, filename: impl AsRef, @@ -650,8 +649,8 @@ pub struct WebsocketHandle { request_id: Uuid, } -impl<'a> WebsocketHandle { - async fn new(builder: WebsocketBuilder<'a>) -> Result { +impl WebsocketHandle { + async fn new(builder: WebsocketBuilder<'_>) -> Result { let url = builder.as_url()?; let request = { diff --git a/src/speak/rest.rs b/src/speak/rest.rs index 7a41429a..fa7e20d7 100644 --- a/src/speak/rest.rs +++ b/src/speak/rest.rs @@ -14,7 +14,7 @@ use super::options::{Options, SerializableOptions}; static DEEPGRAM_API_URL_SPEAK: &str = "v1/speak"; -impl<'a> Speak<'a> { +impl Speak<'_> { /// Sends a request to Deepgram to transcribe pre-recorded audio. pub async fn speak_to_file( &self,