Skip to content

Commit ee875c5

Browse files
RalfJungThomas Bracht Laumann Jespersen
authored andcommitted
expose ConfigWithTemp type
1 parent bc26d56 commit ee875c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/common.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Config {
280280
}
281281

282282
#[cfg(feature = "tmp")]
283-
pub fn tempdir(mut self) -> config_tempdir::ConfigWithTemp {
283+
pub fn tempdir(mut self) -> ConfigWithTemp {
284284
use tempfile;
285285
let tmp = tempfile::Builder::new().prefix("compiletest").tempdir()
286286
.expect("failed to create temporary directory");
@@ -317,6 +317,9 @@ mod config_tempdir {
317317
}
318318
}
319319

320+
#[cfg(feature = "tmp")]
321+
pub use self::config_tempdir::ConfigWithTemp;
322+
320323

321324
impl Default for Config {
322325
fn default() -> Config {

0 commit comments

Comments
 (0)