mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-08 21:35:47 +00:00
tiny simplification
This commit is contained in:
parent
76f153e35e
commit
519bde621c
1 changed files with 2 additions and 2 deletions
|
@ -653,7 +653,7 @@ impl<DB: Database> DependencyGraph<DB> {
|
||||||
self.edges.insert(from_id, to_id);
|
self.edges.insert(from_id, to_id);
|
||||||
self.labels
|
self.labels
|
||||||
.entry(database_key.clone())
|
.entry(database_key.clone())
|
||||||
.or_insert(SmallVec::default())
|
.or_default()
|
||||||
.push(from_id);
|
.push(from_id);
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
@ -662,7 +662,7 @@ impl<DB: Database> DependencyGraph<DB> {
|
||||||
let vec = self
|
let vec = self
|
||||||
.labels
|
.labels
|
||||||
.remove(database_key)
|
.remove(database_key)
|
||||||
.unwrap_or(SmallVec::default());
|
.unwrap_or_default();
|
||||||
|
|
||||||
for from_id in &vec {
|
for from_id in &vec {
|
||||||
let to_id1 = self.edges.remove(from_id);
|
let to_id1 = self.edges.remove(from_id);
|
||||||
|
|
Loading…
Reference in a new issue