Remove unnecessary macro_use
s in rustdoc
This commit is contained in:
parent
6d42707cde
commit
b6851ba3c9
4 changed files with 7 additions and 8 deletions
|
@ -22,8 +22,7 @@ use super::{
|
||||||
BASIC_KEYWORDS,
|
BASIC_KEYWORDS,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::clean;
|
use crate::clean::{self, ExternalCrate};
|
||||||
use crate::clean::ExternalCrate;
|
|
||||||
use crate::config::RenderOptions;
|
use crate::config::RenderOptions;
|
||||||
use crate::docfs::{DocFS, PathError};
|
use crate::docfs::{DocFS, PathError};
|
||||||
use crate::error::Error;
|
use crate::error::Error;
|
||||||
|
@ -35,6 +34,7 @@ use crate::html::format::Buffer;
|
||||||
use crate::html::markdown::{self, plain_text_summary, ErrorCodes, IdMap};
|
use crate::html::markdown::{self, plain_text_summary, ErrorCodes, IdMap};
|
||||||
use crate::html::{layout, sources};
|
use crate::html::{layout, sources};
|
||||||
use crate::scrape_examples::AllCallLocations;
|
use crate::scrape_examples::AllCallLocations;
|
||||||
|
use crate::try_err;
|
||||||
|
|
||||||
/// Major driving force in all rustdoc rendering. This contains information
|
/// Major driving force in all rustdoc rendering. This contains information
|
||||||
/// about where in the tree-like hierarchy rendering is occurring and controls
|
/// about where in the tree-like hierarchy rendering is occurring and controls
|
||||||
|
|
|
@ -77,6 +77,7 @@ use crate::html::highlight;
|
||||||
use crate::html::markdown::{HeadingOffset, Markdown, MarkdownHtml, MarkdownSummaryLine};
|
use crate::html::markdown::{HeadingOffset, Markdown, MarkdownHtml, MarkdownSummaryLine};
|
||||||
use crate::html::sources;
|
use crate::html::sources;
|
||||||
use crate::scrape_examples::CallData;
|
use crate::scrape_examples::CallData;
|
||||||
|
use crate::try_none;
|
||||||
|
|
||||||
/// A pair of name and its optional document.
|
/// A pair of name and its optional document.
|
||||||
crate type NameDoc = (String, Option<String>);
|
crate type NameDoc = (String, Option<String>);
|
||||||
|
|
|
@ -17,6 +17,7 @@ use crate::config::{EmitType, RenderOptions};
|
||||||
use crate::docfs::PathError;
|
use crate::docfs::PathError;
|
||||||
use crate::error::Error;
|
use crate::error::Error;
|
||||||
use crate::html::{layout, static_files};
|
use crate::html::{layout, static_files};
|
||||||
|
use crate::{try_err, try_none};
|
||||||
|
|
||||||
static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
|
static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
|
||||||
map! {
|
map! {
|
||||||
|
|
|
@ -103,17 +103,14 @@ macro_rules! map {
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
mod externalfiles;
|
|
||||||
|
|
||||||
mod clean;
|
mod clean;
|
||||||
mod config;
|
mod config;
|
||||||
mod core;
|
mod core;
|
||||||
mod docfs;
|
mod docfs;
|
||||||
mod doctree;
|
|
||||||
#[macro_use]
|
|
||||||
mod error;
|
|
||||||
mod doctest;
|
mod doctest;
|
||||||
|
mod doctree;
|
||||||
|
mod error;
|
||||||
|
mod externalfiles;
|
||||||
mod fold;
|
mod fold;
|
||||||
mod formats;
|
mod formats;
|
||||||
// used by the error-index generator, so it needs to be public
|
// used by the error-index generator, so it needs to be public
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue