Clippy + fmt

This commit is contained in:
Brian Carroll 2021-11-15 09:52:16 +00:00
parent 1c17797aa6
commit e200e6c346
2 changed files with 7 additions and 7 deletions

View file

@ -229,13 +229,13 @@ where
} => {
// If this function is just a lowlevel wrapper, then inline it
if let Some(lowlevel) = LowLevel::from_wrapper_symbol(*func_sym) {
return self.build_run_low_level(
self.build_run_low_level(
sym,
&lowlevel,
arguments,
arg_layouts,
ret_layout,
);
)
} else if func_sym
.module_string(&self.env().interns)
.starts_with(ModuleName::APP)
@ -247,7 +247,10 @@ where
self.load_literal_symbols(arguments)?;
self.build_fn_call(sym, fn_name, arguments, arg_layouts, ret_layout)
} else {
Err(format!("the function, {:?}, is not yet implemented", func_sym))
Err(format!(
"the function, {:?}, is not yet implemented",
func_sym
))
}
}

View file

@ -143,10 +143,7 @@ impl LowLevel {
pub fn is_higher_order(&self) -> bool {
use LowLevel::*;
match self {
higher_order!() => true,
_ => false,
}
matches!(self, higher_order!())
}
pub fn function_argument_position(&self) -> usize {