Skip to content

Commit

Permalink
doc(ast) Fix an intra link near Module::resolve (#55)
Browse files Browse the repository at this point in the history
* doc(ast) Fix an intra link near `Module::resolve`.

* doc(lib) Deny `intra_doc_link_resolution_failure`.

* chore(ast) rustfmt
  • Loading branch information
Hywan authored Feb 21, 2020
1 parent d313673 commit 64b5091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/wast/src/ast/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'a> Module<'a> {
/// where expansion and name resolution happens.
///
/// This function will mutate the AST of this [`Module`] and replace all
/// [`Index`] arguments with `Index::Num`. This will also expand inline
/// [`super::Index`] arguments with `Index::Num`. This will also expand inline
/// exports/imports listed on fields and handle various other shorthands of
/// the text format.
///
Expand Down Expand Up @@ -121,7 +121,7 @@ impl<'a> Module<'a> {
}
}
if starts > 1 {
return Err(parser.error("multiple start sections found"))
return Err(parser.error("multiple start sections found"));
}
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion crates/wast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
//! [`Parse`]: parser::Parse
//! [`LexError`]: lexer::LexError
#![deny(missing_docs)]
#![deny(missing_docs, intra_doc_link_resolution_failure)]

use std::fmt;
use std::path::{Path, PathBuf};
Expand Down

0 comments on commit 64b5091

Please sign in to comment.