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/examples/testbot | |
| parent | 918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff) | |
| download | azalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz | |
enable str_to_string clippy lint
Diffstat (limited to 'azalea/examples/testbot')
| -rw-r--r-- | azalea/examples/testbot/commands/debug.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/testbot/main.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/azalea/examples/testbot/commands/debug.rs b/azalea/examples/testbot/commands/debug.rs index c5b93c7d..68f06dc3 100644 --- a/azalea/examples/testbot/commands/debug.rs +++ b/azalea/examples/testbot/commands/debug.rs @@ -184,7 +184,7 @@ pub fn register(commands: &mut CommandDispatcher<Mutex<CommandSource>>) { if let Some(queued) = executing_path.queued_path { queued.len().to_string() } else { - "n/a".to_string() + "n/a".to_owned() }, )); 1 diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs index 2c282f07..71c5585d 100644 --- a/azalea/examples/testbot/main.rs +++ b/azalea/examples/testbot/main.rs @@ -213,9 +213,9 @@ pub struct Args { } fn parse_args() -> Args { - let mut owner_username = "admin".to_string(); + let mut owner_username = "admin".to_owned(); let mut accounts = Vec::new(); - let mut server = "localhost".to_string(); + let mut server = "localhost".to_owned(); let mut pathfinder_debug_particles = false; let mut args = env::args().skip(1); @@ -243,7 +243,7 @@ fn parse_args() -> Args { } if accounts.is_empty() { - accounts.push("azalea".to_string()); + accounts.push("azalea".to_owned()); } Args { |
