File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -247,12 +247,10 @@ impl ReadableArgs<u64> for FixedPenaltyScorer {
247
247
since = "0.0.105" ,
248
248
note = "ProbabilisticScorer should be used instead of Scorer." ,
249
249
) ]
250
- pub type Scorer = ScorerUsingTime :: < ConfiguredTime > ;
251
-
252
250
#[ cfg( not( feature = "no-std" ) ) ]
253
- type ConfiguredTime = std:: time:: Instant ;
251
+ pub type Scorer = ScorerUsingTime :: < std:: time:: Instant > ;
254
252
#[ cfg( feature = "no-std" ) ]
255
- type ConfiguredTime = time:: Eternity ;
253
+ pub type Scorer = ScorerUsingTime :: < time:: Eternity > ;
256
254
257
255
// Note that ideally we'd hide ScorerUsingTime from public view by sealing it as well, but rustdoc
258
256
// doesn't handle this well - instead exposing a `Scorer` which has no trait implementation(s) or
@@ -503,7 +501,10 @@ impl<T: Time> Readable for ChannelFailure<T> {
503
501
/// behavior.
504
502
///
505
503
/// [1]: https://arxiv.org/abs/2107.05322
506
- pub type ProbabilisticScorer < G > = ProbabilisticScorerUsingTime :: < G , ConfiguredTime > ;
504
+ #[ cfg( not( feature = "no-std" ) ) ]
505
+ pub type ProbabilisticScorer < G > = ProbabilisticScorerUsingTime :: < G , std:: time:: Instant > ;
506
+ #[ cfg( feature = "no-std" ) ]
507
+ pub type ProbabilisticScorer < G > = ProbabilisticScorerUsingTime :: < G , time:: Eternity > ;
507
508
508
509
/// Probabilistic [`Score`] implementation.
509
510
///
You can’t perform that action at this time.
0 commit comments