Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 117158e

Browse files
committed
fix: exec_batch log foramt
1 parent c5a301f commit 117158e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/cargo_fmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- uses: actions/checkout@master
1414
- name: Install Rust
1515
run: rustup update stable && rustup default stable && rustup component add rustfmt
16-
- run: cargo fmt -- --check
16+
- run: cargo fmt -- --check && cargo clippy

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,12 @@ impl Session {
989989

990990
/// execute batch statement and return a DataSets
991991
pub fn exec_batch(&mut self, statements: Vec<String>) {
992-
let req = TSExecuteBatchStatementReq::new(self.session_id, statements.clone());
992+
let req = TSExecuteBatchStatementReq::new(self.session_id, statements);
993993
match self.client.execute_batch_statement(req) {
994994
Ok(status) => {
995995
if self.is_success(&status) {
996996
info!(
997-
"Execute statements {:?}, message: {:?}",
998-
statements,
997+
"Execute statements {:?}",
999998
status.message.unwrap_or_else(|| "None".to_string())
1000999
);
10011000
} else {

0 commit comments

Comments
 (0)