File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ #![deny(rust_2018_idioms, unused_lifetimes)]
2
+
1
3
use mdbook::book::{Book, Chapter};
2
4
use mdbook::errors::Error;
3
5
use mdbook::preprocess::{CmdPreprocessor, Preprocessor, PreprocessorContext};
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ fn collect_markdown_links(chapter: &Chapter) -> Vec<Link<'_>> {
145
145
// Broken links are collected so that you can write something like
146
146
// `[std::option::Option]` which in pulldown_cmark's eyes is a broken
147
147
// link. However, that is the normal syntax for rustdoc.
148
- let broken_link = |broken_link: BrokenLink| {
148
+ let broken_link = |broken_link: BrokenLink<'_> | {
149
149
broken_links.push(Link {
150
150
link_type: broken_link.link_type,
151
151
// Necessary due to lifetime issues.
@@ -205,7 +205,7 @@ fn collect_markdown_links(chapter: &Chapter) -> Vec<Link<'_>> {
205
205
/// generate intra-doc links on them.
206
206
///
207
207
/// The output will be in the given `tmp` directory.
208
- fn run_rustdoc(tmp: &TempDir, chapter_links: &HashMap<&PathBuf, Vec<Link>>) {
208
+ fn run_rustdoc(tmp: &TempDir, chapter_links: &HashMap<&PathBuf, Vec<Link<'_> >>) {
209
209
let src_path = tmp.path().join("a.rs");
210
210
// Allow redundant since there could some in-scope things that are
211
211
// technically not necessary, but we don't care about (like
You can’t perform that action at this time.
0 commit comments