Move greeting into its own function, tidy up error path.

This commit is contained in:
Tangent 2020-05-24 20:53:30 -04:00
parent cf513ace26
commit 03e4512839
3 changed files with 43 additions and 35 deletions
src/net

View file

@ -1,5 +1,7 @@
use serde::{Deserialize, Serialize};
pub mod server;
#[derive(Deserialize, Debug)]
#[serde(tag = "t")]
pub enum ClientMessage<I, S> {