Skip to content

Commit

Permalink
exposing ghcomment and super_toml for public use
Browse files Browse the repository at this point in the history
  • Loading branch information
nasifimtiazohi committed Jul 22, 2021
1 parent c1728b7 commit 6b45817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions depdive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ mod advisory;
mod code;
mod cratesio;
mod diff;
mod ghcomment;
pub mod ghcomment;
mod github;
mod super_toml;
pub mod super_toml;
mod update;

use ghcomment::{Emoji::*, GitHubCommentGenerator, TextStyle::*};
Expand Down
6 changes: 3 additions & 3 deletions depdive/src/super_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ impl SuperPackageGenerator {
Ok(&self.dir)
}

fn _get_dir(&self) -> &TempDir {
// For testing purpose
#[cfg(test)]
fn get_dir(&self) -> &TempDir {
&self.dir
}

Expand Down Expand Up @@ -414,7 +414,7 @@ mod test {
let super_package = get_test_super_package_generator();
super_package.setup_empty_package().unwrap();
super_package.write_super_toml_dependencies(&graph).unwrap();
let dir = super_package._get_dir();
let dir = super_package.get_dir();

let super_graph = MetadataCommand::new()
.manifest_path(dir.path().join("Cargo.toml"))
Expand Down

0 comments on commit 6b45817

Please sign in to comment.