Skip to content

Commit 6479450

Browse files
committed
mdbook-spec: Fix Spec::new visibility
In #1646 I accidentally changed the visibility of `Spec::new`. It needs to be `pub` in order to work in the upstream integration.
1 parent b2fd0f2 commit 6479450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdbook-spec/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct Spec {
5757
}
5858

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

0 commit comments

Comments
 (0)