rust-payjoin icon indicating copy to clipboard operation
rust-payjoin copied to clipboard

Use `IntoUrl` for `ohttp_relay` argument

Open arminsabouri opened this issue 8 months ago • 4 comments

Switching to IntoUrl makes the function more ergonomic by allowing a broader range of URL-like inputs. This also simplifies bindings, as strings can be passed directly without extra conversion.

arminsabouri avatar Apr 22 '25 20:04 arminsabouri

Pull Request Test Coverage Report for Build 14668335342

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 81.908%

Files with Coverage Reduction New Missed Lines %
payjoin/src/send/mod.rs 2 94.46%
<!-- Total: 2
Totals Coverage Status
Change from base Build 14668081009: -0.03%
Covered Lines: 5324
Relevant Lines: 6500

💛 - Coveralls

coveralls avatar Apr 22 '25 20:04 coveralls

I think this is right but also there still other places this change is appropriate: multiparty::{Sender,extract_v2,GetContext::extract_req,FinalizeContext::extract_req}. I think that's it

DanGould avatar Apr 23 '25 18:04 DanGould

I think this is right but also there still other places this change is appropriate: multiparty::{Sender,extract_v2,GetContext::extract_req,FinalizeContext::extract_req}. I think that's it

Done!

arminsabouri avatar Apr 24 '25 13:04 arminsabouri

multiparty::Sender::extract_v2 still takes a concrete Url. Please comb the codebase for the stragglers

external passed should-be-urls that return errors that handle IntoUrl should be IntoUrl. Internal functions where Urls are already parsed should remain as-is.

DanGould avatar Apr 25 '25 16:04 DanGould

replaced by #692

DanGould avatar May 12 '25 18:05 DanGould