blob: f9a2f95ca48dae791738818561bc5c95584ec307 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyleft (ɔ) 2021-2021 Whirlsplash
// SPDX-License-Identifier: GPL-3.0-only
use crate::server::net::structure::NetworkProperty;
pub fn find_property_in_property_list(
property_list: &[NetworkProperty],
property: i32,
) -> &NetworkProperty {
property_list
.iter()
.find(|i| i.prop_id == property)
.unwrap()
}
|