tweak to documentation
This commit is contained in:
parent
c1bbc9a188
commit
e3e4953560
|
|
@ -155,8 +155,6 @@ impl Default for Config {
|
||||||
impl Config {
|
impl Config {
|
||||||
/// This function returns the index of a given player identity in the player_priorities hashmap.
|
/// This function returns the index of a given player identity in the player_priorities hashmap.
|
||||||
/// If the given identity is not in the map, the value of i32::MAX is returned instead.
|
/// If the given identity is not in the map, the value of i32::MAX is returned instead.
|
||||||
///
|
|
||||||
/// TODO: using a HashMap would be more efficient i think.
|
|
||||||
pub fn find_player_priorities_idx(&self, name: &str) -> u8 {
|
pub fn find_player_priorities_idx(&self, name: &str) -> u8 {
|
||||||
match self.player_priorities.get(name) {
|
match self.player_priorities.get(name) {
|
||||||
Some(val) => *val,
|
Some(val) => *val,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue