Merge pull request #755 from gwenn/lifetime_elision

Lifetime elision
This commit is contained in:
gwenn 2020-06-02 18:21:13 +02:00 committed by GitHub
commit bb34f3fec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ unsafe impl<'vtab> VTab<'vtab> for ArrayTab {
Ok(()) Ok(())
} }
fn open(&'vtab self) -> Result<ArrayTabCursor<'vtab>> { fn open(&self) -> Result<ArrayTabCursor<'_>> {
Ok(ArrayTabCursor::new()) Ok(ArrayTabCursor::new())
} }
} }

View File

@ -259,7 +259,7 @@ unsafe impl<'vtab> VTab<'vtab> for CSVTab {
Ok(()) Ok(())
} }
fn open(&'vtab self) -> Result<CSVTabCursor<'vtab>> { fn open(&self) -> Result<CSVTabCursor<'_>> {
Ok(CSVTabCursor::new(self.reader()?)) Ok(CSVTabCursor::new(self.reader()?))
} }
} }

View File

@ -152,7 +152,7 @@ unsafe impl<'vtab> VTab<'vtab> for SeriesTab {
Ok(()) Ok(())
} }
fn open(&'vtab self) -> Result<SeriesTabCursor<'vtab>> { fn open(&self) -> Result<SeriesTabCursor<'_>> {
Ok(SeriesTabCursor::new()) Ok(SeriesTabCursor::new())
} }
} }