diff options
| author | mat <github@matdoes.dev> | 2023-01-21 22:25:22 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-01-21 22:25:22 -0600 |
| commit | c652bbc6091212811133466914e7ef39e61a7b21 (patch) | |
| tree | c2eef8d242e07054af9ae9df6f8af7a6a3e630f2 /bot | |
| parent | 9ee5e71bb13e596248fde000d8717c86276b0ce1 (diff) | |
| download | azalea-drasl-c652bbc6091212811133466914e7ef39e61a7b21.tar.xz | |
clippy
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 78d61940..1bd407e8 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -43,7 +43,7 @@ async fn main() -> anyhow::Result<()> { let mut states = Vec::new(); for i in 0..1 { - accounts.push(Account::offline(&format!("bot{}", i))); + accounts.push(Account::offline(&format!("bot{i}"))); states.push(State::default()); } @@ -98,7 +98,7 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< } else if m.content() == "look" { let target_pos_vec3 = entity.pos(); let target_pos: BlockPos = target_pos_vec3.into(); - println!("target_pos: {:?}", target_pos); + println!("target_pos: {target_pos:?}"); bot.look_at(&target_pos.center()); } else if m.content() == "jump" { bot.set_jumping(true); @@ -138,10 +138,10 @@ async fn swarm_handle( println!("swarm chat message: {}", m.message().to_ansi()); if m.message().to_string() == "<py5> world" { for (name, world) in &swarm.worlds.read().worlds { - println!("world name: {}", name); + println!("world name: {name}"); if let Some(w) = world.upgrade() { for chunk_pos in w.chunk_storage.read().chunks.values() { - println!("chunk: {:?}", chunk_pos); + println!("chunk: {chunk_pos:?}"); } } else { println!("nvm world is gone"); |
