Skip to content

Commit

Permalink
remove empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Nov 20, 2024
1 parent c8a25d8 commit 73d3c19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions parquet/src/arrow/async_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,7 @@ pub trait AsyncFileReader: Send {
fn get_metadata(&mut self) -> BoxFuture<'_, Result<Arc<ParquetMetaData>>>;
}

/// Implements AsyncFileReader for boxed readers with an explicit lifetime 'reader.
/// This allows Box<dyn AsyncFileReader + 'reader> to be used as an AsyncFileReader,
/// which is needed when the boxed reader contains references with lifetimes
/// shorter than 'static.
/// This allows Box<dyn AsyncFileReader + '_> to be used as an AsyncFileReader,
impl<'reader> AsyncFileReader for Box<dyn AsyncFileReader + 'reader> {
fn get_bytes(&mut self, range: Range<usize>) -> BoxFuture<'_, Result<Bytes>> {
self.as_mut().get_bytes(range)
Expand Down

0 comments on commit 73d3c19

Please sign in to comment.