Skip to content

Commit 6a37d27

Browse files
committed
Remove unused Error From SystemTime impl
The Expired variant is explicitly constructed.
1 parent 6f356cd commit 6a37d27

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

payjoin/src/receive/v2/error.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ impl From<crate::into_url::Error> for SessionError {
4141
fn from(e: crate::into_url::Error) -> Self { InternalSessionError::ParseUrl(e).into() }
4242
}
4343

44-
impl From<std::time::SystemTime> for Error {
45-
fn from(e: std::time::SystemTime) -> Self { InternalSessionError::Expired(e).into() }
46-
}
47-
4844
impl From<OhttpEncapsulationError> for Error {
4945
fn from(e: OhttpEncapsulationError) -> Self {
5046
InternalSessionError::OhttpEncapsulation(e).into()

0 commit comments

Comments
 (0)