diff options
| author | mat <github@matdoes.dev> | 2021-12-11 15:17:42 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-11 15:17:42 -0600 |
| commit | ba911a8a207eb47df7a055410570767b2e33c2ae (patch) | |
| tree | 4a53d384f08b7272ba287bdb326f3d7fcb09f289 /minecraft-protocol/src/lib.rs | |
| parent | 6026c74430f311c9217b77e7ac07d183efde5bce (diff) | |
| download | azalea-drasl-ba911a8a207eb47df7a055410570767b2e33c2ae.tar.xz | |
correct minecraft-chat :tada:
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()); } |
