messing with trait objects

This commit is contained in:
Timo Kösters authored and Nyaaori committed 2022-10-10 14:02:00 +02:00
1 parent 8708cd3b63
commit face766e0f
61 files changed
+623 -544

No files matched your search

+3 -3
View File
@@ -4,11 +4,11 @@ pub use data::Data;
use ruma::{RoomAliasId, RoomId};
use crate::Result;
pub struct Service<D: Data> {
db: D,
pub struct Service {
db: Box<dyn Data>,
}
impl<D: Data> Service<D> {
impl Service {
#[tracing::instrument(skip(self))]
pub fn set_alias(
&self,