@@ -13,7 +13,7 @@ use crate::ohttp::ohttp_decapsulate;
1313use crate :: output_substitution:: OutputSubstitution ;
1414use crate :: send:: v2:: V2PostContext ;
1515use crate :: uri:: UrlExt ;
16- use crate :: { ImplementationError , PjUri , Request } ;
16+ use crate :: { ImplementationError , IntoUrl , PjUri , Request } ;
1717
1818mod error;
1919mod persist;
@@ -38,7 +38,7 @@ pub struct Sender(v2::Sender);
3838impl Sender {
3939 pub fn extract_v2 (
4040 & self ,
41- ohttp_relay : Url ,
41+ ohttp_relay : impl IntoUrl ,
4242 ) -> Result < ( Request , PostContext ) , CreateRequestError > {
4343 let rs = self
4444 . 0
@@ -117,7 +117,7 @@ impl GetContext {
117117 /// Extract the GET request that will give us the psbt to be finalized
118118 pub fn extract_req (
119119 & self ,
120- ohttp_relay : Url ,
120+ ohttp_relay : impl IntoUrl ,
121121 ) -> Result < ( Request , ohttp:: ClientResponse ) , crate :: send:: v2:: CreateRequestError > {
122122 self . 0 . extract_req ( ohttp_relay)
123123 }
@@ -175,7 +175,7 @@ pub struct FinalizeContext {
175175impl FinalizeContext {
176176 pub fn extract_req (
177177 & self ,
178- ohttp_relay : Url ,
178+ ohttp_relay : impl IntoUrl ,
179179 ) -> Result < ( Request , ohttp:: ClientResponse ) , CreateRequestError > {
180180 let reply_key = self . hpke_ctx . reply_pair . secret_key ( ) ;
181181 let body = serialize_v2_body (
0 commit comments