Convert Option<&Lrc<T>> return types to Option<&T>.
It's simpler and more concise.
This commit is contained in:
parent
55a22d2a63
commit
731469fee5
9 changed files with 28 additions and 30 deletions
|
|
@ -145,7 +145,7 @@ struct BufferEmitter {
|
|||
}
|
||||
|
||||
impl Translate for BufferEmitter {
|
||||
fn fluent_bundle(&self) -> Option<&Lrc<rustc_errors::FluentBundle>> {
|
||||
fn fluent_bundle(&self) -> Option<&rustc_errors::FluentBundle> {
|
||||
None
|
||||
}
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ impl Emitter for BufferEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
fn source_map(&self) -> Option<&Lrc<SourceMap>> {
|
||||
fn source_map(&self) -> Option<&SourceMap> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue