diff options
Diffstat (limited to 'minecraft-protocol/src/lib.rs')
| -rw-r--r-- | minecraft-protocol/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minecraft-protocol/src/lib.rs b/minecraft-protocol/src/lib.rs index 88b3603f..aaf3da50 100644 --- a/minecraft-protocol/src/lib.rs +++ b/minecraft-protocol/src/lib.rs @@ -23,7 +23,7 @@ pub struct ServerIpAddress { impl ServerAddress { /// Convert a Minecraft server address (host:port, the port is optional) to a ServerAddress - pub fn parse(string: &String) -> Result<ServerAddress, String> { + pub fn parse(string: &str) -> Result<ServerAddress, String> { if string.is_empty() { return Err("Empty string".to_string()); } |
