aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'filamento/src/error.rs')
-rw-r--r--filamento/src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/filamento/src/error.rs b/filamento/src/error.rs
index 996a503..c5fdb03 100644
--- a/filamento/src/error.rs
+++ b/filamento/src/error.rs
@@ -16,7 +16,7 @@ pub enum Error {
// TODO: include content
// UnrecognizedContent(peanuts::element::Content),
#[error("iq receive error: {0}")]
- Iq(IqError),
+ Iq(#[from] IqError),
// TODO: change to Connecting(ConnectingError)
#[error("connecting: {0}")]
Connecting(#[from] ConnectionJobError),
@@ -32,7 +32,7 @@ pub enum Error {
#[error("message send error: {0}")]
MessageSend(MessageSendError),
#[error("message receive error: {0}")]
- MessageRecv(MessageRecvError),
+ MessageRecv(#[from] MessageRecvError),
}
#[derive(Debug, Error, Clone)]
@@ -86,7 +86,7 @@ pub enum RosterError {
#[derive(Debug, Error, Clone)]
#[error("database error: {0}")]
-pub struct DatabaseError(Arc<sqlx::Error>);
+pub struct DatabaseError(pub Arc<sqlx::Error>);
impl From<sqlx::Error> for DatabaseError {
fn from(e: sqlx::Error) -> Self {