Skip to content

Commit

Permalink
More clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Aug 27, 2024
1 parent 5500219 commit 43d442e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/game/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
///
Expand Down

0 comments on commit 43d442e

Please sign in to comment.