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
2 changes: 1 addition & 1 deletion payjoin-ffi/src/uri/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl From<payjoin::PjUri<'static>> for PjUri {
fn from(value: payjoin::PjUri<'static>) -> Self { Self(value) }
}

impl<'a> From<PjUri> for payjoin::PjUri<'a> {
impl From<PjUri> for payjoin::PjUri<'_> {
fn from(value: PjUri) -> Self { value.0 }
}

Expand Down
2 changes: 1 addition & 1 deletion payjoin-mailroom/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 2 additions & 0 deletions payjoin/src/core/receive/v2/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<crate::HpkePublicKey> },
Expand Down
4 changes: 2 additions & 2 deletions payjoin/src/core/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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(); }
}

Expand Down
Loading