MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / redacted

Method redacted

protocol/src/source.rs:37–43  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

35
36impl 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}

Callers

nothing calls this directly

Calls 1

to_strMethod · 0.80

Tested by

no test coverage detected