type signature on rusqlite::Row changed, only need one lifetime annotation
This commit is contained in:
parent
e3bd1cb77e
commit
95780c0ab5
4 changed files with 6 additions and 6 deletions
|
@ -364,7 +364,7 @@ impl TypedIndex {
|
|||
///
|
||||
/// This function will return a runtime error if the type tag is unknown, or the value is
|
||||
/// otherwise not convertible by the DB layer.
|
||||
fn lookup<'a, 'stmt>(&self, row: &Row<'a, 'stmt>) -> Result<Binding> {
|
||||
fn lookup<'a>(&self, row: &Row<'a>) -> Result<Binding> {
|
||||
use TypedIndex::*;
|
||||
|
||||
match self {
|
||||
|
|
|
@ -120,7 +120,7 @@ impl TupleTwoStagePullProjector {
|
|||
}
|
||||
|
||||
// This is exactly the same as for rel.
|
||||
fn collect_bindings<'a, 'stmt>(&self, row: Row<'a, 'stmt>) -> Result<Vec<Binding>> {
|
||||
fn collect_bindings<'a>(&self, row: Row<'a>) -> Result<Vec<Binding>> {
|
||||
// There will be at least as many SQL columns as Datalog columns.
|
||||
// gte 'cos we might be querying extra columns for ordering.
|
||||
// The templates will take care of ignoring columns.
|
||||
|
@ -204,7 +204,7 @@ impl RelTwoStagePullProjector {
|
|||
}
|
||||
}
|
||||
|
||||
fn collect_bindings_into<'a, 'stmt, 'out>(&self, row: Row<'a, 'stmt>, out: &mut Vec<Binding>) -> Result<()> {
|
||||
fn collect_bindings_into<'a>(&self, row: Row<'a>, out: &mut Vec<Binding>) -> Result<()> {
|
||||
// There will be at least as many SQL columns as Datalog columns.
|
||||
// gte 'cos we might be querying extra columns for ordering.
|
||||
// The templates will take care of ignoring columns.
|
||||
|
|
|
@ -93,7 +93,7 @@ impl TupleProjector {
|
|||
}
|
||||
|
||||
// This is just like we do for `rel`, but into a vec of its own.
|
||||
fn collect_bindings<'a, 'stmt>(&self, row: Row<'a, 'stmt>) -> Result<Vec<Binding>> {
|
||||
fn collect_bindings<'a>(&self, row: Row<'a>) -> Result<Vec<Binding>> {
|
||||
// There will be at least as many SQL columns as Datalog columns.
|
||||
// gte 'cos we might be querying extra columns for ordering.
|
||||
// The templates will take care of ignoring columns.
|
||||
|
@ -151,7 +151,7 @@ impl RelProjector {
|
|||
}
|
||||
}
|
||||
|
||||
fn collect_bindings_into<'a, 'stmt, 'out>(&self, row: Row<'a, 'stmt>, out: &mut Vec<Binding>) -> Result<()> {
|
||||
fn collect_bindings_into<'a>(&self, row: Row<'a>, out: &mut Vec<Binding>) -> Result<()> {
|
||||
// There will be at least as many SQL columns as Datalog columns.
|
||||
// gte 'cos we might be querying extra columns for ordering.
|
||||
// The templates will take care of ignoring columns.
|
||||
|
|
|
@ -93,7 +93,7 @@ impl<'schema> PullConsumer<'schema> {
|
|||
Ok(PullConsumer::for_puller(puller, schema, PullIndices::zero()))
|
||||
}
|
||||
|
||||
pub(crate) fn collect_entity<'a, 'stmt>(&mut self, row: &rusqlite::Row<'a, 'stmt>) -> Entid {
|
||||
pub(crate) fn collect_entity<'a>(&mut self, row: &rusqlite::Row<'a>) -> Entid {
|
||||
let entity = row.get(self.indices.sql_index);
|
||||
self.entities.insert(entity);
|
||||
entity
|
||||
|
|
Loading…
Reference in a new issue