Start writing real serve tests

This commit is contained in:
Lucien Greathouse
2019-09-10 18:04:05 -07:00
parent 877fd1af35
commit 8ef797d1a4
6 changed files with 131 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
use std::fmt;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
@@ -13,3 +15,9 @@ impl SessionId {
SessionId(Uuid::new_v4())
}
}
impl fmt::Display for SessionId {
fn fmt(&self, writer: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(writer, "{}", self.0)
}
}