Skip to content

Commit

Permalink
fix lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Nov 29, 2024
1 parent e3e7a86 commit 976c7c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServerStats> {
match self.settings.output_format {
OutputFormat::Table => {
Expand Down
2 changes: 1 addition & 1 deletion core/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 976c7c3

Please sign in to comment.