mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
docs
This commit is contained in:
@ -79,7 +79,11 @@ impl ItemSpec {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
// Read everything and checks if it's loading
|
/// # Usage
|
||||||
|
/// Read everything and checks if it's loading
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
/// 1) If weights are invalid
|
||||||
pub fn validate(&self, key: EquipSlot) {
|
pub fn validate(&self, key: EquipSlot) {
|
||||||
match self {
|
match self {
|
||||||
ItemSpec::Item(specifier) => std::mem::drop(Item::new_from_asset_expect(&specifier)),
|
ItemSpec::Item(specifier) => std::mem::drop(Item::new_from_asset_expect(&specifier)),
|
||||||
|
Reference in New Issue
Block a user