treewide: remove get_ prefix from function names

Follow the conventions of the std library.
This commit is contained in:
Matthias Schiffer 2023-02-12 23:36:58 +01:00
parent 96736bd7ed
commit 9f8446885e
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ pub struct BlockType {
pub color: BlockColor,
}
pub fn get_block_types() -> HashMap<String, BlockType> {
pub fn block_types() -> HashMap<String, BlockType> {
block_types::BLOCK_TYPES
.iter()
.map(|(k, v)| (String::from(*k), *v))