aboutsummaryrefslogtreecommitdiff
path: root/core/src/pads_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/pads_server.rs')
-rw-r--r--core/src/pads_server.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/pads_server.rs b/core/src/pads_server.rs
index 71f9acd..a9f3acb 100644
--- a/core/src/pads_server.rs
+++ b/core/src/pads_server.rs
@@ -4,7 +4,7 @@ use crate::pads_player::{PlayerInfo, PlayerMessage};
/// # 监听服务器
/// 监听服务器用于连接玩家设备,并接收玩家的按键输入
pub struct PadServer {
- server_name: &'static str,
+ server_name: String,
port: u16
}
@@ -14,7 +14,7 @@ impl Default for PadServer {
/// 创建一个使用默认布局的服务器
fn default() -> Self {
PadServer {
- server_name: "This Is No Pads",
+ server_name: String::from("This Is No Pads"),
port: 8916
// TODO :: 补充布局文件
}
@@ -76,6 +76,5 @@ pub enum ServerMessage {
Command(String),
Animation(String),
Shock(Duration, f64),
- Kick,
-
+ Kick
} \ No newline at end of file