clean up passes code
This commit is contained in:
1 parent
a720507094
commit
997986ecf6
1 file changed
+5
-5
@@ -54,12 +54,12 @@ pub struct DirtyNodeStates {
|
||||
|
||||
impl DirtyNodeStates {
|
||||
pub fn with_passes(passes: impl Iterator<Item = TypeId>) -> Self {
|
||||
let mut dirty = FxHashMap::default();
|
||||
for pass in passes {
|
||||
dirty.insert(pass, RwLock::new(BTreeMap::new()));
|
||||
}
|
||||
Self {
|
||||
dirty: Arc::new(dirty),
|
||||
dirty: Arc::new(
|
||||
passes
|
||||
.map(|pass| (pass, RwLock::new(BTreeMap::new())))
|
||||
.collect(),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user