We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
repl
1 parent bafdb61 commit 763c2b2Copy full SHA for 763c2b2
examples/repl.rs
@@ -20,14 +20,16 @@ fn main() {
20
match lua.load(&line).eval::<MultiValue>() {
21
Ok(values) => {
22
editor.add_history_entry(line).unwrap();
23
- println!(
24
- "{}",
25
- values
26
- .iter()
27
- .map(|value| format!("{:#?}", value))
28
- .collect::<Vec<_>>()
29
- .join("\t")
30
- );
+ if values.len() > 0 {
+ println!(
+ "{}",
+ values
+ .iter()
+ .map(|value| format!("{:#?}", value))
+ .collect::<Vec<_>>()
+ .join("\t")
31
+ );
32
+ }
33
break;
34
}
35
Err(Error::SyntaxError {
0 commit comments