From 43d442ea090a3185f8ef15e629cb755b5218981e Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Tue, 27 Aug 2024 14:36:52 -0600 Subject: [PATCH] More clippy --- src/game/cpu.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/game/cpu.rs b/src/game/cpu.rs index 0b2fae9d..5120e354 100644 --- a/src/game/cpu.rs +++ b/src/game/cpu.rs @@ -124,11 +124,13 @@ pub fn halt() { Cpu::halt() } -/// Sets new shard limits for your script in an [`Object`], with shard names -/// in [`JsString`] form as keys and numbers as values. This is the same -/// format accepted by [`shard_limits`]. Total amount of CPU should -/// remain equal to the sum of the values of [`shard_limits`]. This method -/// can be used only once per 12 hours ([`CPU_SET_SHARD_LIMITS_COOLDOWN`]). +/// Set the allocation of your CPU among the server shards. +/// +/// Limits should be in an [`Object`], with shard names in [`JsString`] form as +/// keys and numbers as values. This is the same format returned by +/// [`shard_limits`]. Total amount of CPU should remain equal to the sum of the +/// values of [`shard_limits`]. This method can be used only once per 12 hours +/// ([`CPU_SET_SHARD_LIMITS_COOLDOWN`]). /// /// [Screeps documentation](https://docs.screeps.com/api/#Game.cpu.setShardLimits) ///