From c49885a7c11a7fef9901824656cc3f5dc6252fea Mon Sep 17 00:00:00 2001 From: Lach Date: Tue, 25 Aug 2020 19:56:27 +0000 Subject: [PATCH] build: revert const fns with match --- --- a/crates/jrsonnet-evaluator/src/val.rs +++ b/crates/jrsonnet-evaluator/src/val.rs @@ -177,7 +177,7 @@ Func, } impl ValType { - pub const fn name(&self) -> &'static str { + pub fn name(&self) -> &'static str { use ValType::*; match self { Bool => "boolean", @@ -441,7 +441,7 @@ } } -const fn is_function_like(val: &Val) -> bool { +fn is_function_like(val: &Val) -> bool { matches!(val, Val::Func(_)) } -- gitstuff