@@ -205,7 +205,7 @@ pub trait Emitter: Translate {
205
205
false
206
206
}
207
207
208
- fn source_map ( & self ) -> Option < & Lrc < SourceMap > > ;
208
+ fn source_map ( & self ) -> Option < & SourceMap > ;
209
209
210
210
/// Formats the substitutions of the primary_span
211
211
///
@@ -481,8 +481,8 @@ pub trait Emitter: Translate {
481
481
}
482
482
483
483
impl Translate for HumanEmitter {
484
- fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
485
- self . fluent_bundle . as_ref ( )
484
+ fn fluent_bundle ( & self ) -> Option < & FluentBundle > {
485
+ self . fluent_bundle . as_deref ( )
486
486
}
487
487
488
488
fn fallback_fluent_bundle ( & self ) -> & FluentBundle {
@@ -491,8 +491,8 @@ impl Translate for HumanEmitter {
491
491
}
492
492
493
493
impl Emitter for HumanEmitter {
494
- fn source_map ( & self ) -> Option < & Lrc < SourceMap > > {
495
- self . sm . as_ref ( )
494
+ fn source_map ( & self ) -> Option < & SourceMap > {
495
+ self . sm . as_deref ( )
496
496
}
497
497
498
498
fn emit_diagnostic ( & mut self , mut diag : DiagInner ) {
@@ -540,7 +540,7 @@ pub struct SilentEmitter {
540
540
}
541
541
542
542
impl Translate for SilentEmitter {
543
- fn fluent_bundle ( & self ) -> Option < & Lrc < FluentBundle > > {
543
+ fn fluent_bundle ( & self ) -> Option < & FluentBundle > {
544
544
None
545
545
}
546
546
@@ -552,7 +552,7 @@ impl Translate for SilentEmitter {
552
552
}
553
553
554
554
impl Emitter for SilentEmitter {
555
- fn source_map ( & self ) -> Option < & Lrc < SourceMap > > {
555
+ fn source_map ( & self ) -> Option < & SourceMap > {
556
556
None
557
557
}
558
558
0 commit comments