mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Follow clippy's advice
This commit is contained in:
parent
2babe67998
commit
153eb4f804
1 changed files with 2 additions and 2 deletions
|
@ -1492,7 +1492,7 @@ fn call_by_name<'a>(
|
|||
|
||||
None => {
|
||||
// This must have been a runtime error.
|
||||
let error = procs.runtime_errors.get(&proc_name).unwrap().clone();
|
||||
let error = procs.runtime_errors.get(&proc_name).unwrap();
|
||||
|
||||
Expr::RuntimeError(error)
|
||||
}
|
||||
|
@ -1514,7 +1514,7 @@ pub fn specialize_all<'a>(
|
|||
mut procs: Procs<'a>,
|
||||
layout_cache: &mut LayoutCache<'a>,
|
||||
) -> Procs<'a> {
|
||||
let mut pending_specializations = procs.pending_specializations.unwrap_or(MutMap::default());
|
||||
let mut pending_specializations = procs.pending_specializations.unwrap_or_default();
|
||||
|
||||
// When calling from_can, pending_specializations should be unavailable.
|
||||
// This must be a single pass, and we must not add any more entries to it!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue