maybe make imports better fuck idunno

This commit is contained in:
bel
2020-05-02 14:51:53 -06:00
parent b270423fb1
commit 97c5848eba
8 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
use super::event;
pub trait Room {
fn sync(&mut self) -> Vec<event::Event>;
fn send(&mut self, message: String) -> Result<&str, &str>;
fn room_id(&self) -> String;
}
#[cfg(test)]
mod tests {
use super::Room;
use super::super::mockroom::MockRoom;
#[test]
fn mockroom() {
fn gen() -> impl Room {
let r = MockRoom::create();
r
}
gen();
}
}