mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Clippy
This commit is contained in:
parent
3ce4c6c77d
commit
caf4a80542
1 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ impl<'a> LayoutCache<'a> {
|
|||
}
|
||||
|
||||
fn get_help<Result: Copy>(
|
||||
cache: &std::vec::Vec<CacheLayer<Result>>,
|
||||
cache: &[CacheLayer<Result>],
|
||||
subs: &Subs,
|
||||
var: Variable,
|
||||
) -> Option<Result> {
|
||||
|
@ -140,7 +140,7 @@ impl<'a> LayoutCache<'a> {
|
|||
}
|
||||
|
||||
fn insert_help<Result>(
|
||||
cache: &mut std::vec::Vec<CacheLayer<Result>>,
|
||||
cache: &mut [CacheLayer<Result>],
|
||||
subs: &Subs,
|
||||
var: Variable,
|
||||
result: Result,
|
||||
|
@ -1416,7 +1416,7 @@ impl<'a> LambdaSet<'a> {
|
|||
|
||||
let Cacheable(result, criteria) = env.cached_or(closure_var, |env| {
|
||||
let Cacheable(result, criteria) = Self::from_var_help(env, closure_var);
|
||||
let result = result.map(|layout| Layout::LambdaSet(layout));
|
||||
let result = result.map(Layout::LambdaSet);
|
||||
Cacheable(result, criteria)
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue