Fixed more compile time errors
This commit is contained in:
parent
785ddfc4aa
commit
bd8b616ca0
103 changed files with 1617 additions and 2749 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{database::KeyValueDatabase, service, utils, Error};
|
||||
use crate::{database::KeyValueDatabase, service, utils, Error, Result};
|
||||
|
||||
impl service::appservice::Data for KeyValueDatabase {
|
||||
/// Registers an appservice and returns the ID to the caller
|
||||
|
@ -54,7 +54,7 @@ impl service::appservice::Data for KeyValueDatabase {
|
|||
)
|
||||
}
|
||||
|
||||
fn iter_ids(&self) -> Result<impl Iterator<Item = Result<String>> + '_> {
|
||||
fn iter_ids(&self) -> Result<Box<dyn Iterator<Item = Result<String>>>> {
|
||||
Ok(self.id_appserviceregistrations.iter().map(|(id, _)| {
|
||||
utils::string_from_bytes(&id)
|
||||
.map_err(|_| Error::bad_database("Invalid id bytes in id_appserviceregistrations."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue