diff options
| author | mat <git@matdoes.dev> | 2025-12-11 23:21:42 -1030 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-11 23:21:42 -1030 |
| commit | ca70e5e321a3c174c53d0650feed84db471ac30d (patch) | |
| tree | 43042fa40c2f3d7f30ea56e1ee84c59dcb13be66 /azalea-protocol/src/address.rs | |
| parent | 918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff) | |
| download | azalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz | |
enable str_to_string clippy lint
Diffstat (limited to 'azalea-protocol/src/address.rs')
| -rw-r--r-- | azalea-protocol/src/address.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/address.rs b/azalea-protocol/src/address.rs index a3e487a1..569e2488 100644 --- a/azalea-protocol/src/address.rs +++ b/azalea-protocol/src/address.rs @@ -75,7 +75,7 @@ impl TryFrom<&str> for ServerAddr { return Err(ServerAddrParseError); } let mut parts = string.split(':'); - let host = parts.next().ok_or(ServerAddrParseError)?.to_string(); + let host = parts.next().ok_or(ServerAddrParseError)?.to_owned(); // default the port to 25565 let port = parts.next().unwrap_or("25565"); let port = u16::from_str(port).ok().ok_or(ServerAddrParseError)?; |
