Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Dec 12, 2023
1 parent e363223 commit 9dcad74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/pgwire/src/pg_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ where
async fn process_query_msg(&mut self, query_string: io::Result<&str>) -> PsqlResult<()> {
let sql: Arc<str> =
Arc::from(query_string.map_err(|err| PsqlError::SimpleQueryError(Box::new(err)))?);
record_sql_in_span(&*sql);
record_sql_in_span(&sql);
let session = self.session.clone().unwrap();

let _exec_context_guard = session.init_exec_context(sql.clone());
Expand Down Expand Up @@ -797,7 +797,7 @@ where
} else {
let portal = self.get_portal(&portal_name)?;
let sql: Arc<str> = Arc::from(format!("{}", portal));
record_sql_in_span(&*sql);
record_sql_in_span(&sql);

let _exec_context_guard = session.init_exec_context(sql.clone());
let result = session.clone().execute(portal).await;
Expand Down

0 comments on commit 9dcad74

Please sign in to comment.