Skip to content

Commit b3375ce

Browse files
committed
[fix] explicit From
1 parent 6c3f53d commit b3375ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/types/transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl From<OutPoint> for OutPointKey {
137137
impl From<&OutPoint> for OutPointKey {
138138
#[inline]
139139
fn from(op: &OutPoint) -> Self {
140-
Self::from(*op)
140+
<Self as From<OutPoint>>::from(*op)
141141
}
142142
}
143143

@@ -153,7 +153,7 @@ impl From<OutPointKey> for OutPoint {
153153
impl From<&OutPointKey> for OutPoint {
154154
#[inline]
155155
fn from(key: &OutPointKey) -> Self {
156-
Self::from(*key)
156+
<Self as From<OutPointKey>>::from(*key)
157157
}
158158
}
159159

0 commit comments

Comments
 (0)