MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / write_entry

Function write_entry

src/telemetry.rs:245–248  ·  view source on GitHub ↗

Write a single log entry to the file, followed by a flush. Returns an error if either the write or flush fails.

(file: &mut File, line: &str)

Source from the content-addressed store, hash-verified

243///
244/// Returns an error if either the write or flush fails.
245fn write_entry(file: &mut File, line: &str) -> io::Result<()> {
246 writeln!(file, "{}", line)?;
247 file.flush()
248}

Callers 1

spawnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected