Skip to content

Commit

Permalink
Fixed lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bobozaur committed Jan 2, 2024
1 parent 32ff170 commit 0420821
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/connection/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,11 @@ impl Iterator for ChunkIter {
fn next(&mut self) -> Option<Self::Item> {
debug_assert!(self.chunk_rows_pos <= self.chunk_rows_total);

let Some(data) = self.data.next() else {
return None;
};
let row = ExaRow::new(data, self.columns.clone(), self.column_names.clone());
let row = ExaRow::new(
self.data.next()?,
self.columns.clone(),
self.column_names.clone(),
);

self.chunk_rows_pos += 1;
Some(row)
Expand Down
1 change: 1 addition & 0 deletions src/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ impl<'a> From<&'a ExaConnectOptions> for ExaConnectOptionsRef<'a> {

/// Helper containing TLS related options.
#[derive(Debug, Clone, Copy)]
#[allow(clippy::struct_field_names)]
pub struct ExaTlsOptionsRef<'a> {
pub(crate) ssl_mode: ExaSslMode,
pub(crate) ssl_ca: Option<&'a CertificateInput>,
Expand Down
1 change: 1 addition & 0 deletions src/responses/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub use attributes::{Attributes, ExaAttributes};
pub use describe::DescribeStatement;
pub use error::ExaDatabaseError;
pub use fetch::DataChunk;
#[cfg(feature = "etl")]
pub use hosts::Hosts;
pub use prepared_stmt::PreparedStatement;
pub use public_key::PublicKey;
Expand Down

0 comments on commit 0420821

Please sign in to comment.