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
|
@ -1,4 +1,4 @@
|
|||
use rustc_data_structures::sync::{IntoDynSyncSend, Lrc};
|
||||
use rustc_data_structures::sync::IntoDynSyncSend;
|
||||
use rustc_error_messages::fluent_bundle::resolver::errors::{ReferenceKind, ResolverError};
|
||||
use rustc_error_messages::{DiagMessage, langid};
|
||||
|
||||
|
@ -12,7 +12,7 @@ struct Dummy {
|
|||
}
|
||||
|
||||
impl Translate for Dummy {
|
||||
fn fluent_bundle(&self) -> Option<&Lrc<FluentBundle>> {
|
||||
fn fluent_bundle(&self) -> Option<&FluentBundle> {
|
||||
None
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue