Jacob Kiers
9a89febcb2
Since only the bin crate was left, there is no reason to keep the workspace setup. Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
17 lines
398 B
Rust
17 lines
398 B
Rust
mod debug;
|
|
|
|
pub(crate) fn write_to_test_path(msg: &Message) {
|
|
let test_path: PathBuf = [
|
|
Path::new("tests/data"),
|
|
Path::new(&format!("{}.eml", &msg.get_uid())),
|
|
]
|
|
.iter()
|
|
.collect();
|
|
|
|
let _ = OpenOptions::new()
|
|
.write(true)
|
|
.create(true)
|
|
.open(test_path)
|
|
.expect("Could not open file fir writing")
|
|
.write_all(&msg.data);
|
|
} |