diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-26 17:08:35 +0100 | 
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-26 17:08:35 +0100 | 
| commit | 745297e7aa714ea4a657adb7403a18d9766ce2bd (patch) | |
| tree | 2ac5a162e3966eabda358c32e3570038e9c1e822 | |
| parent | 85abb276361c424d64743c0965242dd0e7b866d1 (diff) | |
| download | rust-745297e7aa714ea4a657adb7403a18d9766ce2bd.tar.gz rust-745297e7aa714ea4a657adb7403a18d9766ce2bd.zip | |
Use helper function instead of reimplementing the logic to check if rustdoc should emit crate
| -rw-r--r-- | src/librustdoc/html/render/write_shared.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/librustdoc/html/render/write_shared.rs b/src/librustdoc/html/render/write_shared.rs index a4dec013fc0..adb77653efd 100644 --- a/src/librustdoc/html/render/write_shared.rs +++ b/src/librustdoc/html/render/write_shared.rs @@ -153,7 +153,7 @@ fn write_rendered_cross_crate_info( include_sources: bool, ) -> Result<(), Error> { let m = &opt.should_merge; - if opt.emit.is_empty() || opt.emit.contains(&EmitType::InvocationSpecific) { + if opt.should_emit_crate() { if include_sources { write_rendered_cci::<SourcesPart, _>(SourcesPart::blank, dst, crates, m)?; } | 
