diff options
| author | Fuwn <[email protected]> | 2021-04-30 18:15:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-30 18:15:32 -0700 |
| commit | b33b2e40234672f2923cbe94eefa7b026c19e586 (patch) | |
| tree | db8eb0f98ff1c69ac682c45c3f96d8fcaa508d52 /src/server/hub.rs | |
| parent | refactor(cmds): orphan functions to methods (diff) | |
| download | whirl-b33b2e40234672f2923cbe94eefa7b026c19e586.tar.xz whirl-b33b2e40234672f2923cbe94eefa7b026c19e586.zip | |
refactor(cmds): of2m
Diffstat (limited to 'src/server/hub.rs')
| -rw-r--r-- | src/server/hub.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/hub.rs b/src/server/hub.rs index eb15c77..f4f92da 100644 --- a/src/server/hub.rs +++ b/src/server/hub.rs @@ -27,7 +27,7 @@ use crate::{ room::{create::create_room_id_request, parse::parse_room_id_request}, subscribe_distance::parse::parse_subscribe_distance, subscribe_room::parse::parse_subscribe_room, - teleport::parse::parse_teleport, + teleport::Teleport, text::Text, }, constants::*, @@ -134,7 +134,7 @@ impl Server for Hub { username, subscribe_distance); } TELEPORT => { - let teleport = parse_teleport(msg[3..].to_vec()); + let teleport = Teleport::parse(msg[3..].to_vec()); trace!("received teleport from {}: {:?}", username, teleport); } |