don't panic in dep_node_debug_str if self.data is None
This commit is contained in:
parent
6d049fb5bb
commit
4f1f671f38
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ impl DepGraph {
|
|||
}
|
||||
|
||||
pub(super) fn dep_node_debug_str(&self, dep_node: DepNode) -> Option<String> {
|
||||
self.data.as_ref().unwrap().dep_node_debug.borrow().get(&dep_node).cloned()
|
||||
self.data.as_ref().and_then(|t| t.dep_node_debug.borrow().get(&dep_node).cloned())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue