Skip to content

Commit ded33f1

Browse files
authored
Use explicit error conversion where there might be ambiguity (payjoin#585)
payjoin#570 (comment)
2 parents 6f356cd + 4269128 commit ded33f1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

payjoin/src/receive/v2/error.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ pub(crate) enum InternalSessionError {
3737
UnexpectedStatusCode(http::StatusCode),
3838
}
3939

40-
impl From<crate::into_url::Error> for SessionError {
41-
fn from(e: crate::into_url::Error) -> Self { InternalSessionError::ParseUrl(e).into() }
42-
}
43-
44-
impl From<std::time::SystemTime> for Error {
45-
fn from(e: std::time::SystemTime) -> Self { InternalSessionError::Expired(e).into() }
46-
}
47-
4840
impl From<OhttpEncapsulationError> for Error {
4941
fn from(e: OhttpEncapsulationError) -> Self {
5042
InternalSessionError::OhttpEncapsulation(e).into()

0 commit comments

Comments
 (0)