mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +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 this function is just a lowlevel wrapper, then inline it
|
||||||
if let Some(lowlevel) = LowLevel::from_wrapper_symbol(*func_sym) {
|
if let Some(lowlevel) = LowLevel::from_wrapper_symbol(*func_sym) {
|
||||||
return self.build_run_low_level(
|
self.build_run_low_level(
|
||||||
sym,
|
sym,
|
||||||
&lowlevel,
|
&lowlevel,
|
||||||
arguments,
|
arguments,
|
||||||
arg_layouts,
|
arg_layouts,
|
||||||
ret_layout,
|
ret_layout,
|
||||||
);
|
)
|
||||||
} else if func_sym
|
} else if func_sym
|
||||||
.module_string(&self.env().interns)
|
.module_string(&self.env().interns)
|
||||||
.starts_with(ModuleName::APP)
|
.starts_with(ModuleName::APP)
|
||||||
|
@ -247,7 +247,10 @@ where
|
||||||
self.load_literal_symbols(arguments)?;
|
self.load_literal_symbols(arguments)?;
|
||||||
self.build_fn_call(sym, fn_name, arguments, arg_layouts, ret_layout)
|
self.build_fn_call(sym, fn_name, arguments, arg_layouts, ret_layout)
|
||||||
} else {
|
} 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 {
|
pub fn is_higher_order(&self) -> bool {
|
||||||
use LowLevel::*;
|
use LowLevel::*;
|
||||||
|
|
||||||
match self {
|
matches!(self, higher_order!())
|
||||||
higher_order!() => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn function_argument_position(&self) -> usize {
|
pub fn function_argument_position(&self) -> usize {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue