mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
fmt+clippy
This commit is contained in:
parent
9a49f3a876
commit
c745c08071
@ -565,7 +565,7 @@ fn fix_values_captured_in_closure_def(
|
||||
}
|
||||
|
||||
fn fix_values_captured_in_closure_defs(
|
||||
defs: &mut Vec<crate::def::Def>,
|
||||
defs: &mut [crate::def::Def],
|
||||
no_capture_symbols: &mut VecSet<Symbol>,
|
||||
) {
|
||||
// recursive defs cannot capture each other
|
||||
|
@ -724,7 +724,7 @@ impl<'a> Specialized<'a> {
|
||||
})
|
||||
}
|
||||
|
||||
fn is_specialized(&mut self, symbol: Symbol, layout: &ProcLayout<'a>) -> bool {
|
||||
fn is_specialized(&self, symbol: Symbol, layout: &ProcLayout<'a>) -> bool {
|
||||
for (i, s) in self.symbols.iter().enumerate() {
|
||||
if *s == symbol && &self.proc_layouts[i] == layout {
|
||||
return true;
|
||||
|
2
vendor/pathfinding/src/lib.rs
vendored
2
vendor/pathfinding/src/lib.rs
vendored
@ -105,7 +105,7 @@ where
|
||||
let mut marked = HashSet::with_capacity_and_hasher(nodes.len(), default_hasher());
|
||||
let mut temp = MutSet::default();
|
||||
let mut sorted = VecDeque::with_capacity(nodes.len());
|
||||
while let Some(node) = unmarked.iter().cloned().next() {
|
||||
while let Some(node) = unmarked.iter().next().cloned() {
|
||||
temp.clear();
|
||||
visit(
|
||||
&node,
|
||||
|
Loading…
Reference in New Issue
Block a user