Skip to content

Commit

Permalink
Merge pull request #79 from epage/debug
Browse files Browse the repository at this point in the history
fix(fixture): Add Debug impls
  • Loading branch information
epage committed Nov 7, 2022
2 parents b028204 + 797583d commit b68ae9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fixture/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ use super::errors::*;
/// [`File`]: std::fs::File
/// [`Path`]: std::path::Path
/// [`ReadDir`]: std::fs::ReadDir
#[derive(Debug)]
pub struct TempDir {
temp: Inner,
}

#[derive(Debug)]
enum Inner {
Temp(tempfile::TempDir),
Persisted(path::PathBuf),
Expand Down
2 changes: 2 additions & 0 deletions src/fixture/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ use super::errors::*;
/// [`File`]: std::fs::File
/// [`Path`]: std::path::Path
/// [`ReadDir`]: std::fs::ReadDir
#[derive(Debug)]
pub struct NamedTempFile {
temp: Inner,
path: path::PathBuf,
}

#[derive(Debug)]
enum Inner {
Temp(tempfile::TempDir),
Persisted,
Expand Down

0 comments on commit b68ae9a

Please sign in to comment.