mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-01 05:50:52 +08:00
Lifetime elision
This commit is contained in:
parent
52a80f95f7
commit
c577a9d801
@ -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())
|
||||
}
|
||||
}
|
||||
|
@ -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()?))
|
||||
}
|
||||
}
|
||||
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user