diff --git a/payjoin-ffi/src/uri/mod.rs b/payjoin-ffi/src/uri/mod.rs index ca7ef5657..9898743a4 100644 --- a/payjoin-ffi/src/uri/mod.rs +++ b/payjoin-ffi/src/uri/mod.rs @@ -51,7 +51,7 @@ impl From> for PjUri { fn from(value: payjoin::PjUri<'static>) -> Self { Self(value) } } -impl<'a> From for payjoin::PjUri<'a> { +impl From for payjoin::PjUri<'_> { fn from(value: PjUri) -> Self { value.0 } } diff --git a/payjoin-mailroom/tests/integration.rs b/payjoin-mailroom/tests/integration.rs index 5bcb7f03c..ffba6d74d 100644 --- a/payjoin-mailroom/tests/integration.rs +++ b/payjoin-mailroom/tests/integration.rs @@ -141,7 +141,7 @@ mod integration { Ok(res) } - async fn ohttp_req(relay_port: u16, cert: CertificateDer<'static>, gateway: GatewayUri) -> () { + async fn ohttp_req(relay_port: u16, cert: CertificateDer<'static>, gateway: GatewayUri) { for gw_path in ["", &gateway.to_uri().to_string()] { tokio::time::sleep(std::time::Duration::from_secs(1)).await; let mut req = Request::new(full(Vec::from_hex(ENCAPSULATED_REQ).unwrap()).boxed()); diff --git a/payjoin/src/core/receive/v2/session.rs b/payjoin/src/core/receive/v2/session.rs index ba0670e2a..404a2aebf 100644 --- a/payjoin/src/core/receive/v2/session.rs +++ b/payjoin/src/core/receive/v2/session.rs @@ -193,6 +193,8 @@ pub enum SessionStatus { /// Represents a piece of information that the receiver has obtained from the session /// Each event can be used to transition the receiver state machine to a new state #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +// TODO Explore why this lint is not consistent and only fails on 1.85.0 unlike the Sender +#[allow(clippy::large_enum_variant)] pub enum SessionEvent { Created(SessionContext), RetrievedOriginalPayload { original: OriginalPayload, reply_key: Option }, diff --git a/payjoin/src/core/url.rs b/payjoin/src/core/url.rs index 1e6c52d41..ee64f5d8b 100644 --- a/payjoin/src/core/url.rs +++ b/payjoin/src/core/url.rs @@ -88,7 +88,7 @@ pub struct PathSegmentsMut<'a> { url: &'a mut Url, } -impl<'a> PathSegmentsMut<'a> { +impl PathSegmentsMut<'_> { /// Append a single path segment, inserting a `/` separator if needed. /// /// The segment is pushed verbatim — no percent-encoding is applied. @@ -100,7 +100,7 @@ impl<'a> PathSegmentsMut<'a> { } } -impl<'a> Drop for PathSegmentsMut<'a> { +impl Drop for PathSegmentsMut<'_> { fn drop(&mut self) { self.url.rebuild_raw(); } }