(&mut self)
| 35 | |
| 36 | impl SourceFile { |
| 37 | pub fn redacted(&mut self) { |
| 38 | let path = std::path::Path::new(&self.path); |
| 39 | let file_name = path.file_name().expect("file").to_str().expect("str"); |
| 40 | self.path = format!("<redacted>/{file_name}"); |
| 41 | |
| 42 | self.modified = SystemTime::UNIX_EPOCH; |
| 43 | } |
| 44 | } |