mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Clippy + fmt
This commit is contained in:
parent
1c17797aa6
commit
e200e6c346
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue