Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions payjoin-cli/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ pub(crate) mod v1;
pub(crate) mod v2;

#[async_trait::async_trait]
// [TODO] remove this clippy ignore once https://github.com/dtolnay/async-trait/pull/303 is included
// in a new release
#[allow(clippy::double_must_use)]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be fixed upstream in the async_trait crate perhaps?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be fixed in the next release dtolnay/async-trait#303

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could add a TODO pointing out this is waiting on an upstream fix

pub trait App: Send + Sync {
async fn new(config: Config) -> Result<Self>
where
Expand Down
3 changes: 3 additions & 0 deletions payjoin-ffi/src/receive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,9 @@ impl payjoin::persist::SessionPersister for CallbackPersisterAdapter {
/// Async session persister that should save and load events as JSON strings.
#[uniffi::export(with_foreign)]
#[async_trait::async_trait]
// [TODO] remove this clippy ignore once https://github.com/dtolnay/async-trait/pull/303 is included
// in a new release
#[allow(clippy::double_must_use)]
pub trait JsonReceiverSessionPersisterAsync: Send + Sync {
async fn save(&self, event: String) -> Result<(), ForeignError>;
async fn load(&self) -> Result<Vec<String>, ForeignError>;
Expand Down
3 changes: 3 additions & 0 deletions payjoin-ffi/src/send/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ impl payjoin::persist::SessionPersister for CallbackPersisterAdapter {
/// Async session persister that should save and load events as JSON strings.
#[uniffi::export(with_foreign)]
#[async_trait::async_trait]
// [TODO] remove this clippy ignore once https://github.com/dtolnay/async-trait/pull/303 is included
// in a new release
#[allow(clippy::double_must_use)]
pub trait JsonSenderSessionPersisterAsync: Send + Sync {
async fn save(&self, event: String) -> Result<(), ForeignError>;
async fn load(&self) -> Result<Vec<String>, ForeignError>;
Expand Down
Loading