MCPcopy Create free account
hub / github.com/Noumena-Network/code / next_nonempty_line

Function next_nonempty_line

rust/py_repl_host/src/main.rs:119–130  ·  view source on GitHub ↗
(input: &mut I)

Source from the content-addressed store, hash-verified

117}
118
119fn next_nonempty_line<I>(input: &mut I) -> io::Result<Option<String>>
120where
121 I: Iterator<Item = io::Result<String>>,
122{
123 for line in input {
124 let line = line?;
125 if !line.trim().is_empty() {
126 return Ok(Some(line));
127 }
128 }
129 Ok(None)
130}
131
132fn relay_exec<I, W>(
133 exec_id: &str,

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected