Skip to content

Commit

Permalink
Merge pull request #1589 from ehuss/idioms
Browse files Browse the repository at this point in the history
Sync denied lints with upstream
  • Loading branch information
traviscross authored Aug 27, 2024
2 parents f0f6155 + 82c9d5f commit a80c4a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mdbook-spec/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![deny(rust_2018_idioms, unused_lifetimes)]

use mdbook::book::{Book, Chapter};
use mdbook::errors::Error;
use mdbook::preprocess::{CmdPreprocessor, Preprocessor, PreprocessorContext};
Expand Down
4 changes: 2 additions & 2 deletions mdbook-spec/src/std_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn collect_markdown_links(chapter: &Chapter) -> Vec<Link<'_>> {
// Broken links are collected so that you can write something like
// `[std::option::Option]` which in pulldown_cmark's eyes is a broken
// link. However, that is the normal syntax for rustdoc.
let broken_link = |broken_link: BrokenLink| {
let broken_link = |broken_link: BrokenLink<'_>| {
broken_links.push(Link {
link_type: broken_link.link_type,
// Necessary due to lifetime issues.
Expand Down Expand Up @@ -205,7 +205,7 @@ fn collect_markdown_links(chapter: &Chapter) -> Vec<Link<'_>> {
/// generate intra-doc links on them.
///
/// The output will be in the given `tmp` directory.
fn run_rustdoc(tmp: &TempDir, chapter_links: &HashMap<&PathBuf, Vec<Link>>) {
fn run_rustdoc(tmp: &TempDir, chapter_links: &HashMap<&PathBuf, Vec<Link<'_>>>) {
let src_path = tmp.path().join("a.rs");
// Allow redundant since there could some in-scope things that are
// technically not necessary, but we don't care about (like
Expand Down

0 comments on commit a80c4a7

Please sign in to comment.