Skip to content

Commit 47cceff

Browse files
committed
Elide unneeded lifetimes
1 parent b29c660 commit 47cceff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/listen/websocket.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl WebsocketBuilder<'_> {
330330
}
331331
}
332332

333-
impl<'a> WebsocketBuilder<'a> {
333+
impl WebsocketBuilder<'_> {
334334
pub async fn file(
335335
self,
336336
filename: impl AsRef<Path>,
@@ -649,8 +649,8 @@ pub struct WebsocketHandle {
649649
request_id: Uuid,
650650
}
651651

652-
impl<'a> WebsocketHandle {
653-
async fn new(builder: WebsocketBuilder<'a>) -> Result<WebsocketHandle> {
652+
impl WebsocketHandle {
653+
async fn new(builder: WebsocketBuilder<'_>) -> Result<WebsocketHandle> {
654654
let url = builder.as_url()?;
655655
let host = url.host_str().ok_or(DeepgramError::InvalidUrl)?;
656656

src/speak/rest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use super::options::{Options, SerializableOptions};
1414

1515
static DEEPGRAM_API_URL_SPEAK: &str = "v1/speak";
1616

17-
impl<'a> Speak<'a> {
17+
impl Speak<'_> {
1818
/// Sends a request to Deepgram to transcribe pre-recorded audio.
1919
pub async fn speak_to_file(
2020
&self,

0 commit comments

Comments
 (0)