(path: &PathBuf, content: &str)
| 437 | } |
| 438 | |
| 439 | fn write(path: &PathBuf, content: &str) { |
| 440 | if let Some(p) = path.parent() { |
| 441 | std::fs::create_dir_all(p).unwrap(); |
| 442 | } |
| 443 | std::fs::write(path, content).unwrap(); |
| 444 | } |
| 445 | |
| 446 | fn read(path: &PathBuf) -> String { |
| 447 | std::fs::read_to_string(path).unwrap() |
no outgoing calls