Skip to content

Commit 5713d28

Browse files
committed
f - Fix compilation errors for older versions
1 parent d465e4a commit 5713d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scorer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct ChannelFailure<C: Clock> {
118118
}
119119

120120
/// A measurement of time.
121-
pub trait Clock: Sub<Duration, Output = Self> {
121+
pub trait Clock: Sub<Duration, Output = Self> where Self: Sized {
122122
/// Returns an instance corresponding to "now".
123123
fn now() -> Self;
124124

0 commit comments

Comments
 (0)