Skip to content

Commit a8835c9

Browse files
committed
cleanup test case
- fix formatting - use `println!` instead of `log`
1 parent 510370a commit a8835c9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/crates/local.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,16 @@ mod tests {
100100

101101
#[test]
102102
fn test_no_copy_target() -> Result<(), Error> {
103-
use log::debug;
104-
env_logger::init();
105-
106-
debug!("debugging works");
107103
let (src, dest) = (tempfile::tempdir()?, tempfile::tempdir()?);
108-
debug!("made root dirs");
109104
std::fs::create_dir(src.path().join("target"))?;
110-
std::fs::write(src.path().join("target").join("a.out"), b"this is not actually an ELF file")?;
111-
debug!("made subdirs and files");
105+
std::fs::write(
106+
src.path().join("target").join("a.out"),
107+
b"this is not actually an ELF file",
108+
)?;
109+
println!("made subdirs and files");
112110

113111
super::copy_dir(src.path(), dest.path())?;
114-
debug!("copied");
112+
println!("copied");
115113

116114
assert!(!dest.path().join("target").exists());
117115

0 commit comments

Comments
 (0)