Lifetime elision

This commit is contained in:
gwenn 2020-06-01 18:42:30 +02:00
parent 52a80f95f7
commit c577a9d801
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())
}
}