From 976c7c37f3655e0a5d646320bca94786dd270d78 Mon Sep 17 00:00:00 2001 From: Yang Xiufeng Date: Fri, 29 Nov 2024 13:58:51 +0800 Subject: [PATCH] fix lifetime --- cli/src/display.rs | 2 +- core/src/request.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/display.rs b/cli/src/display.rs index ed2641ba..dec1b6c2 100644 --- a/cli/src/display.rs +++ b/cli/src/display.rs @@ -363,7 +363,7 @@ impl<'a> FormatDisplay<'a> { } #[async_trait::async_trait] -impl<'a> ChunkDisplay for FormatDisplay<'a> { +impl ChunkDisplay for FormatDisplay<'_> { async fn display(&mut self) -> Result { match self.settings.output_format { OutputFormat::Table => { diff --git a/core/src/request.rs b/core/src/request.rs index 65d0585e..fe2d9cbf 100644 --- a/core/src/request.rs +++ b/core/src/request.rs @@ -54,7 +54,7 @@ pub struct StageAttachmentConfig<'a> { } impl<'r, 't: 'r> QueryRequest<'r> { - pub fn new(sql: &'r str) -> QueryRequest { + pub fn new(sql: &'r str) -> QueryRequest<'r> { QueryRequest { session: None, sql,