cl-typeck: rustfmt implement.rs
This commit is contained in:
parent
46a1639990
commit
03a4e76292
@ -1,6 +1,6 @@
|
|||||||
use crate::{handle::Handle, table::Table};
|
use crate::{handle::Handle, table::Table};
|
||||||
|
|
||||||
pub fn implement(table: &mut Table) -> Vec<Handle> {
|
pub fn implement(table: &mut Table) -> Vec<Handle> {
|
||||||
let pending = std::mem::take(&mut table.impls);
|
let pending = std::mem::take(&mut table.impls);
|
||||||
let mut errors = vec![];
|
let mut errors = vec![];
|
||||||
for node in pending {
|
for node in pending {
|
||||||
@ -9,9 +9,9 @@ use crate::{handle::Handle, table::Table};
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn impl_one(table: &mut Table, node: Handle) -> Result<(), Handle> {
|
pub fn impl_one(table: &mut Table, node: Handle) -> Result<(), Handle> {
|
||||||
let Some(target) = table.impl_target(node) else {
|
let Some(target) = table.impl_target(node) else {
|
||||||
Err(node)?
|
Err(node)?
|
||||||
};
|
};
|
||||||
@ -20,4 +20,4 @@ use crate::{handle::Handle, table::Table};
|
|||||||
imports.entry(target).or_default().extend(children);
|
imports.entry(target).or_default().extend(children);
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user