fmt+clippy

This commit is contained in:
Anton-4 2022-05-02 18:33:41 +02:00
parent 9a49f3a876
commit c745c08071
No known key found for this signature in database
GPG Key ID: C954D6E0F9C0ABFD
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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,