git.delta.rocks / jrsonnet / refs/commits / 1c761a8e8bf9

difftreelog

style fix clippy lints

Yaroslav Bolyukin2020-09-12parent: #23c027a.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/val.rsdiffbeforeafterboth
177 Func,177 Func,
178}178}
179impl ValType {179impl ValType {
180 pub fn name(&self) -> &'static str {180 pub const fn name(&self) -> &'static str {
181 use ValType::*;181 use ValType::*;
182 match self {182 match self {
183 Bool => "boolean",183 Bool => "boolean",
448 }448 }
449}449}
450450
451fn is_function_like(val: &Val) -> bool {451const fn is_function_like(val: &Val) -> bool {
452 matches!(val, Val::Func(_))452 matches!(val, Val::Func(_))
453}453}
454454