Skip to content

Commit

Permalink
squash! fix dir
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Nov 26, 2020
1 parent 947bda1 commit 0c7d7e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/docbuilder/rustwide_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl RustwideBuilder {
let krate = Crate::crates_io(DUMMY_CRATE_NAME, DUMMY_CRATE_VERSION);
krate.fetch(&self.workspace)?;

let metadata = Metadata::from_crate_root(&build_dir.build_dir())?;
let metadata = Metadata::from_crate_root(&build_dir.get_source_dir(&krate)?)?;

build_dir
.build(
Expand Down Expand Up @@ -330,7 +330,7 @@ impl RustwideBuilder {

let local_storage = tempfile::Builder::new().prefix("docsrs-docs").tempdir()?;

let metadata = Metadata::from_crate_root(&build_dir.build_dir())?;
let metadata = Metadata::from_crate_root(&build_dir.get_source_dir(&krate)?)?;
let res = build_dir
.build(
&self.toolchain,
Expand Down

0 comments on commit 0c7d7e4

Please sign in to comment.