Skip to content

Commit 13d6622

Browse files
More clippy
1 parent e6a74c5 commit 13d6622

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/server/flightsql/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl FlightSqlServiceImpl {
133133
.try_record_request(ctx, req)
134134
.await
135135
{
136-
error!("error recording request: {}", e.to_string())
136+
error!("error recording request: {}", e)
137137
}
138138

139139
histogram!(latency_metric).record(duration.get_milliseconds() as f64);

src/server/http/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ async fn create_response(
299299
.try_record_request(state.execution.session_ctx(), req)
300300
.await
301301
{
302-
error!("Error recording request: {}", e.to_string())
302+
error!("Error recording request: {}", e)
303303
}
304304
res
305305
}

src/tui/state/tabs/flightsql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl FlightSQLTabState<'_> {
103103
self.query_results_state = Some(RefCell::new(TableState::default()));
104104
}
105105

106-
pub fn editor(&self) -> TextArea {
106+
pub fn editor(&self) -> TextArea<'_> {
107107
// TODO: Figure out how to do this without clone. Probably need logic in handler to make
108108
// updates to the Widget and then pass a ref
109109
self.editor.clone()

0 commit comments

Comments
 (0)