Skip to content

Commit cee05ff

Browse files
committed
sdk: use the explicit path for event builder error enum
Due to the new `pool::builder` module, some IDE show an error saying that the event builder error can't be converted to the SDK error. So use the explicit path to the event builder module. Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 4fbfc9b commit cee05ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/nostr-sdk/src/client/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum Error {
2222
/// Signer error
2323
Signer(SignerError),
2424
/// [`EventBuilder`] error
25-
EventBuilder(builder::Error),
25+
EventBuilder(event::builder::Error),
2626
/// Json error
2727
Json(serde_json::Error),
2828
/// Shared state error
@@ -92,8 +92,8 @@ impl From<SignerError> for Error {
9292
}
9393
}
9494

95-
impl From<builder::Error> for Error {
96-
fn from(e: builder::Error) -> Self {
95+
impl From<event::builder::Error> for Error {
96+
fn from(e: event::builder::Error) -> Self {
9797
Self::EventBuilder(e)
9898
}
9999
}

0 commit comments

Comments
 (0)