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+
13use mdbook:: book:: { Book , Chapter } ;
24use mdbook:: errors:: Error ;
35use 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<'_>> {
145145 // Broken links are collected so that you can write something like
146146 // `[std::option::Option]` which in pulldown_cmark's eyes is a broken
147147 // link. However, that is the normal syntax for rustdoc.
148- let broken_link = |broken_link : BrokenLink | {
148+ let broken_link = |broken_link : BrokenLink < ' _ > | {
149149 broken_links. push ( Link {
150150 link_type : broken_link. link_type ,
151151 // Necessary due to lifetime issues.
@@ -205,7 +205,7 @@ fn collect_markdown_links(chapter: &Chapter) -> Vec<Link<'_>> {
205205/// generate intra-doc links on them.
206206///
207207/// 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 < ' _ > > > ) {
209209 let src_path = tmp. path ( ) . join ( "a.rs" ) ;
210210 // Allow redundant since there could some in-scope things that are
211211 // technically not necessary, but we don't care about (like
You can’t perform that action at this time.
0 commit comments