diff --git a/src/protocol/parser/pass_definitions.rs b/src/protocol/parser/pass_definitions.rs index 7a48893e72677a23ba5654dfbc30215d74d61db1..f2c983898b35c4ed1c5a62bec09888ea3fe50146 100644 --- a/src/protocol/parser/pass_definitions.rs +++ b/src/protocol/parser/pass_definitions.rs @@ -1451,13 +1451,14 @@ impl PassDefinitions { Definition::Function(function_definition) => { // Check whether it is a builtin function let method = if function_definition.builtin { - match function_definition.identifier.value.as_str() { - "get" => Method::Get, - "put" => Method::Put, - "fires" => Method::Fires, - "create" => Method::Create, - "length" => Method::Length, - "assert" => Method::Assert, + match function_definition.identifier.value.as_bytes() { + KW_FUNC_GET => Method::Get, + KW_FUNC_PUT => Method::Put, + KW_FUNC_FIRES => Method::Fires, + KW_FUNC_CREATE => Method::Create, + KW_FUNC_LENGTH => Method::Length, + KW_FUNC_ASSERT => Method::Assert, + KW_FUNC_PRINT => Method::Print, _ => unreachable!(), } } else {