MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / run

Function run

cranelift/src/cat.rs:20–28  ·  view source on GitHub ↗
(options: &Options)

Source from the content-addressed store, hash-verified

18}
19
20pub fn run(options: &Options) -> Result<()> {
21 for (i, f) in options.files.iter().enumerate() {
22 if i != 0 {
23 println!();
24 }
25 cat_one(f)?
26 }
27 Ok(())
28}
29
30fn cat_one(path: &Path) -> Result<()> {
31 let buffer = read_to_string(path)?;

Callers 4

mainFunction · 0.70
logged_filetestsFunction · 0.50
filetestsFunction · 0.50
compileFunction · 0.50

Calls 3

cat_oneFunction · 0.85
OkFunction · 0.85
iterMethod · 0.45

Tested by 2

logged_filetestsFunction · 0.40
filetestsFunction · 0.40