Skip to content

Commit dd70c9f

Browse files
committed
Rename TerminalError to TerminalErr
"Error" gets replaced by "Exception" in uniffi-dart to respect dart conventions, causing issues. Since this isn't a struct native to rust-payjoin and not an actual `Error`, the easy fix is to rename it.
1 parent e031fa5 commit dd70c9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

payjoin-ffi/src/receive/uni.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ impl From<SessionHistory> for super::SessionHistory {
9393
}
9494

9595
#[derive(uniffi::Object)]
96-
pub struct TerminalError {
96+
pub struct TerminalErr {
9797
error: String,
9898
reply: Option<JsonReply>,
9999
}
100100

101101
#[uniffi::export]
102-
impl TerminalError {
102+
impl TerminalErr {
103103
pub fn error(&self) -> String { self.error.clone() }
104104

105105
pub fn reply(&self) -> Option<Arc<JsonReply>> {
@@ -120,9 +120,9 @@ impl SessionHistory {
120120
}
121121

122122
/// Terminal error from the session if present
123-
pub fn terminal_error(&self) -> Option<Arc<TerminalError>> {
123+
pub fn terminal_error(&self) -> Option<Arc<TerminalErr>> {
124124
self.0 .0.terminal_error().map(|(error, reply)| {
125-
Arc::new(TerminalError { error, reply: reply.map(|reply| reply.into()) })
125+
Arc::new(TerminalErr { error, reply: reply.map(|reply| reply.into()) })
126126
})
127127
}
128128

0 commit comments

Comments
 (0)