Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NationalSecurityAgency/TraceAnalysis
/ open_output
Function
open_output
dynamic-trace/src/bin/tm-count.rs:73–78 ·
view source on GitHub ↗
(output: &str)
Source
from the content-addressed store, hash-verified
71
}
72
73
fn open_output(output: &str) -> io::Result<Box<dyn Write>> {
74
if output ==
"-"
{
75
return Ok(Box::new(io::stdout().lock()));
76
}
77
Ok(Box::new(fs::File::create(output)?))
78
}
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected