We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5843ca7 commit c598bdaCopy full SHA for c598bda
1 file changed
turbopack/crates/turbo-tasks/src/util.rs
@@ -32,8 +32,10 @@ impl SharedError {
32
inner: Arc::new(err),
33
}
34
35
+}
36
- pub fn as_ref(&self) -> &(dyn StdError + 'static) {
37
+impl AsRef<dyn StdError> for SharedError {
38
+ fn as_ref(&self) -> &(dyn StdError + 'static) {
39
let err: &anyhow::Error = &self.inner;
40
err.as_ref()
41
0 commit comments