diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-07 11:03:52 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-07 13:56:29 +1100 |
| commit | 731469fee50133528c1904a07da73e739db6f6c4 (patch) | |
| tree | de053a2993fbd3c011f8f25aaf2601fc30ef17ff /src/librustdoc | |
| parent | 55a22d2a63334e0faff0202b72a31ce832b56125 (diff) | |
| download | rust-731469fee50133528c1904a07da73e739db6f6c4.tar.gz rust-731469fee50133528c1904a07da73e739db6f6c4.zip | |
Convert `Option<&Lrc<T>>` return types to `Option<&T>`.
It's simpler and more concise.
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/passes/lint/check_code_block_syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/passes/lint/check_code_block_syntax.rs b/src/librustdoc/passes/lint/check_code_block_syntax.rs index 848e70a7bdb..e0dc5b4c513 100644 --- a/src/librustdoc/passes/lint/check_code_block_syntax.rs +++ b/src/librustdoc/passes/lint/check_code_block_syntax.rs @@ -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 } } |
