fixup
This commit is contained in:
parent
5291c7f551
commit
1135c117c3
@ -43,6 +43,11 @@ impl TryGetable for Events {
|
|||||||
let vec: Vec<String> = res.try_get(pre, col).map_err(TryGetError::DbErr)?;
|
let vec: Vec<String> = res.try_get(pre, col).map_err(TryGetError::DbErr)?;
|
||||||
Ok(Events(vec.into_iter().map(Event).collect()))
|
Ok(Events(vec.into_iter().map(Event).collect()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn try_get_by_index(res: &QueryResult, idx: usize) -> Result<Self, TryGetError> {
|
||||||
|
let vec: Vec<String> = res.try_get_by_index(idx).map_err(TryGetError::DbErr)?;
|
||||||
|
Ok(Events(vec.into_iter().map(Event).collect()))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ValueType for Events {
|
impl ValueType for Events {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user