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(())
}
fn open(&'vtab self) -> Result<ArrayTabCursor<'vtab>> {
fn open(&self) -> Result<ArrayTabCursor<'_>> {
Ok(ArrayTabCursor::new())
}
}

View File

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

View File

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