diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-13 15:20:03 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-13 15:20:03 +0100 |
commit | fd52e266c6e25999a49c36f17342977b759a2612 (patch) | |
tree | 9c727cac949c9698343d003ee87cfe73c6c6204a /planetwars-matchrunner/src/bot_runner.rs | |
parent | f7655005ff099e8314ecd31e95b26ad74d4efd02 (diff) | |
download | planetwars.dev-fd52e266c6e25999a49c36f17342977b759a2612.tar.xz planetwars.dev-fd52e266c6e25999a49c36f17342977b759a2612.zip |
apply clippy suggestions
Diffstat (limited to 'planetwars-matchrunner/src/bot_runner.rs')
-rw-r--r-- | planetwars-matchrunner/src/bot_runner.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/planetwars-matchrunner/src/bot_runner.rs b/planetwars-matchrunner/src/bot_runner.rs index adb5907..d40a133 100644 --- a/planetwars-matchrunner/src/bot_runner.rs +++ b/planetwars-matchrunner/src/bot_runner.rs @@ -35,7 +35,7 @@ pub fn run_local_bot(player_id: u32, event_bus: Arc<Mutex<EventBus>>, bot: Bot) }; tokio::spawn(runner.run()); - return LocalBotHandle { tx }; + LocalBotHandle { tx } } pub struct LocalBotRunner { @@ -90,11 +90,11 @@ impl Bot { let stdout = child.stdout.take().unwrap(); let reader = BufReader::new(stdout).lines(); - return BotProcess { + BotProcess { stdin: child.stdin.take().unwrap(), stdout: reader, child, - }; + } } } |