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/common | |
| parent | 918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff) | |
| download | azalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz | |
enable str_to_string clippy lint
Diffstat (limited to 'azalea-protocol/src/common')
| -rw-r--r-- | azalea-protocol/src/common/client_information.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-protocol/src/common/client_information.rs b/azalea-protocol/src/common/client_information.rs index c5dd83d7..c5024a52 100644 --- a/azalea-protocol/src/common/client_information.rs +++ b/azalea-protocol/src/common/client_information.rs @@ -11,7 +11,7 @@ use bevy_ecs::component::Component; /// This is only present on local players. #[derive(Clone, Debug, AzBuf, PartialEq, Eq, Component)] pub struct ClientInformation { - /// The locale of the client. + /// The locale of the client, formatted like "en_us". pub language: String, /// The view distance of the client in chunks, same as the render distance /// in-game. @@ -36,7 +36,7 @@ pub struct ClientInformation { impl Default for ClientInformation { fn default() -> Self { Self { - language: "en_us".to_string(), + language: "en_us".to_owned(), view_distance: 8, chat_visibility: ChatVisibility::default(), chat_colors: true, @@ -158,7 +158,7 @@ mod tests { } let data = ClientInformation { - language: "en_gb".to_string(), + language: "en_gb".to_owned(), view_distance: 24, chat_visibility: ChatVisibility::Hidden, chat_colors: false, |
