Skip to content

Commit 190c4b3

Browse files
committed
Make CoreError transparent
Signed-off-by: itowlson <[email protected]>
1 parent 5d6cbad commit 190c4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/locked-app/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pub type Result<T> = std::result::Result<T, Error>;
3030
#[derive(Debug, thiserror::Error)]
3131
pub enum Error {
3232
/// An error propagated from the [`spin_core`] crate.
33-
#[error("spin core error: {0:#}")]
34-
CoreError(#[source] anyhow::Error),
33+
#[error(transparent)]
34+
CoreError(anyhow::Error),
3535
/// An error from a [`DynamicHostComponent`].
3636
#[error("host component error: {0:#}")]
3737
HostComponentError(#[source] anyhow::Error),

0 commit comments

Comments
 (0)