Fix diffing cloned rsx nodes by deep cloning nodes before mounting them (#3271)
* Fix diffing cloned rsx nodes by deep cloning nodes before mounting them * fix clippy
This commit is contained in:
1 parent
2c1215c6a4
commit
354c4ce9cc
5 files changed
+99
-4
No files matched your search
@@ -459,6 +459,14 @@ impl CapturedError {
|
||||
Some(std::result::Result::Ok(self.render.clone()))
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a deep clone of this error
|
||||
pub(crate) fn deep_clone(&self) -> Self {
|
||||
Self {
|
||||
render: self.render.deep_clone(),
|
||||
..self.clone()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for CapturedError {
|
||||
|
||||
Reference in new issue
Block a user