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 @@ -232,12 +232,10 @@ impl Score for FixedPenaltyScorer {
232
232
since = "0.0.105" ,
233
233
note = "ProbabilisticScorer should be used instead of Scorer." ,
234
234
) ]
235
- pub type Scorer = ScorerUsingTime :: < ConfiguredTime > ;
236
-
237
235
#[ cfg( not( feature = "no-std" ) ) ]
238
- type ConfiguredTime = std:: time:: Instant ;
236
+ pub type Scorer = ScorerUsingTime :: < std:: time:: Instant > ;
239
237
#[ cfg( feature = "no-std" ) ]
240
- type ConfiguredTime = time:: Eternity ;
238
+ pub type Scorer = ScorerUsingTime :: < time:: Eternity > ;
241
239
242
240
// Note that ideally we'd hide ScorerUsingTime from public view by sealing it as well, but rustdoc
243
241
// doesn't handle this well - instead exposing a `Scorer` which has no trait implementation(s) or
@@ -487,7 +485,10 @@ impl<T: Time> Readable for ChannelFailure<T> {
487
485
/// behavior.
488
486
///
489
487
/// [1]: https://arxiv.org/abs/2107.05322
490
- pub type ProbabilisticScorer < G > = ProbabilisticScorerUsingTime :: < G , ConfiguredTime > ;
488
+ #[ cfg( not( feature = "no-std" ) ) ]
489
+ pub type ProbabilisticScorer < G > = ProbabilisticScorerUsingTime :: < G , std:: time:: Instant > ;
490
+ #[ cfg( feature = "no-std" ) ]
491
+ pub type ProbabilisticScorer < G > = ProbabilisticScorerUsingTime :: < G , time:: Eternity > ;
491
492
492
493
/// Probabilistic [`Score`] implementation.
493
494
///
You can’t perform that action at this time.
0 commit comments