Skip to content

Commit

Permalink
mdbook-spec: Fix Spec::new visibility
Browse files Browse the repository at this point in the history
In rust-lang/reference#1646 I accidentally
changed the visibility of `Spec::new`. It needs to be `pub` in order to
work in the upstream integration.
  • Loading branch information
Tiger0202 committed Oct 21, 2024
1 parent 40280c6 commit 1d77d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdbook-spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct Spec {
}

impl Spec {
fn new() -> Result<Spec> {
pub fn new() -> Result<Spec> {
let deny_warnings = std::env::var("SPEC_DENY_WARNINGS").as_deref() == Ok("1");
let rust_root = std::env::var_os("SPEC_RUST_ROOT").map(PathBuf::from);
if deny_warnings && rust_root.is_none() {
Expand Down

0 comments on commit 1d77d91

Please sign in to comment.