diff --git a/flake.lock b/flake.lock index cf697ac83..36b10ea0c 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "crane": { "locked": { - "lastModified": 1783203018, - "narHash": "sha256-G6R9IT/xwFuu+CYBWDUAok6AdC4ERC4ZfPPFtEpxnZE=", + "lastModified": 1785782307, + "narHash": "sha256-MPaRdVkf6zZP5fCPxYCi8Dr4pZzgmXzg8T9nVEbp3Mw=", "owner": "ipetkov", "repo": "crane", - "rev": "80db5bdc391be8a1794f6d8a2d56e3a84ebcede2", + "rev": "2c71e194474d13de031d729b729c968ddbe3507f", "type": "github" }, "original": { @@ -68,11 +68,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1783816212, - "narHash": "sha256-2aZisVTVGSFEk3MYcOiWQp3zvwyzbqpktB69Rcfp150=", + "lastModified": 1786410043, + "narHash": "sha256-JTbODJPDcd3d8U7lO4MVUU3Yo0jz2KQSAHXka+IWBEo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3b32825de172d0bc85664f495edb096b10862524", + "rev": "8e2eeb9477c9d40009a5bd51cd3eef2f5abb26f1", "type": "github" }, "original": { @@ -111,11 +111,11 @@ ] }, "locked": { - "lastModified": 1782093830, - "narHash": "sha256-6gmEVe69+KlRkZD4PEEV5xAlB9CB0Y9TiuEgQjDrKTQ=", + "lastModified": 1785730568, + "narHash": "sha256-NjSPsgjJ7MSpBtTkUcmNhRe6AFZ96+zsca2M8YuQi8Y=", "owner": "pyproject-nix", "repo": "build-system-pkgs", - "rev": "430680a19bc85a3bda55f12e4cc1a1aadcf2e478", + "rev": "90fde00db3687922d39d95fc591475fd0bbbcd72", "type": "github" }, "original": { @@ -131,11 +131,11 @@ ] }, "locked": { - "lastModified": 1782905613, - "narHash": "sha256-SvXJcAemihifkTn4BGvyE5K1FJX9bl4U8DQ5pqKvD0s=", + "lastModified": 1786031528, + "narHash": "sha256-cROiHKO3UbIKqF5FG5NikvydzlfIj4EcR1Cty9qOVt4=", "owner": "pyproject-nix", "repo": "pyproject.nix", - "rev": "7af23cfe91064865ecf2e835da28b45b3c6f49fd", + "rev": "1b1485546d85f6f6c7aadb10c4923dbc09633263", "type": "github" }, "original": { @@ -165,11 +165,11 @@ ] }, "locked": { - "lastModified": 1783921439, - "narHash": "sha256-DsSIQSRMrLOz40LrGZ03sp2RlJ9sz3wKpd8XPTOzXnw=", + "lastModified": 1786507911, + "narHash": "sha256-w5aZRLbiu7H6TqsYXVMdRKg0S4DRaJpxyqxx86AwxVk=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "e013376c32a8fcf07ddb6ec71739552bc118b7bd", + "rev": "39db48099ad16834af7e27485a4babf9c28b3897", "type": "github" }, "original": { @@ -200,11 +200,11 @@ ] }, "locked": { - "lastModified": 1780220602, - "narHash": "sha256-eynAfOmbmxJnkp7YewvCEbShNnnYJ9gLLqkzsYtBPeM=", + "lastModified": 1785945821, + "narHash": "sha256-NLSyTCW4K4ofhNBllt3omPasm6QpralXH1DBZOc91Dw=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "db947814a175b7ca6ded66e21383d938df01c227", + "rev": "ae7910970dddc408fe6ab1c8e4b277bb21d72dc0", "type": "github" }, "original": { @@ -223,11 +223,11 @@ ] }, "locked": { - "lastModified": 1783511944, - "narHash": "sha256-Z/Ss9rWw9QYcRK+Qqkmty7PB1pIik5XGbrtit+ad2qs=", + "lastModified": 1786026603, + "narHash": "sha256-payw8w/aqR/Vr7LvDp14jxa5egFrZN7g8INsPzn7rN0=", "owner": "pyproject-nix", "repo": "uv2nix", - "rev": "83995ef5e4ece3c9c704aa645bbff439e15a0ac3", + "rev": "0dfa8388dc855b1774f509725d8ea6806291571d", "type": "github" }, "original": { diff --git a/payjoin-cli/src/app/mod.rs b/payjoin-cli/src/app/mod.rs index a0174e187..e2d1a5607 100644 --- a/payjoin-cli/src/app/mod.rs +++ b/payjoin-cli/src/app/mod.rs @@ -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)] pub trait App: Send + Sync { async fn new(config: Config) -> Result where diff --git a/payjoin-ffi/src/receive/mod.rs b/payjoin-ffi/src/receive/mod.rs index a0e81f90f..6153f2211 100644 --- a/payjoin-ffi/src/receive/mod.rs +++ b/payjoin-ffi/src/receive/mod.rs @@ -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, ForeignError>; diff --git a/payjoin-ffi/src/send/mod.rs b/payjoin-ffi/src/send/mod.rs index bccbead8b..738cb323b 100644 --- a/payjoin-ffi/src/send/mod.rs +++ b/payjoin-ffi/src/send/mod.rs @@ -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, ForeignError>;